Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IntellisenseX and Thor question
Message
From
13/06/2016 16:29:03
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
13/06/2016 16:01:34
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
VFPX/Sedna
Miscellaneous
Thread ID:
01637273
Message ID:
01637324
Views:
53
>Walter,
>
>Long time no hear!
>
>Thanks for reminding that Execscript can be quite slow because it caches then "compiles" your prg script every time. Whereas Eval() or even & Macro Substitution are almost as quick as "compiled" code after the initial hit to get the interpreter loaded. If it's possible to express your code in a single line, Eval() is extremely quick. Of course if you have a busy tight loop I agree with your tactic of pre-compiling as much as possible though it does create hack opportunities if you're DOing writeable prgs that exist outside your app...

Do this:

execscript("?sys(16,1)"+0h0d+"set step on"+0h0d+"return")

Do it any number of times. You'll see that it writes a .rmp file containing just your command (no you can't open it but check the size), and a .fxp of the same file. Then it deletes both. So it's a strtofile(), compile, do, erase two files. Every time. You can check your temp folder while it's in the debugger.

Alternately, you can just

execscript("?sys(16,1)")

and keep filemon or process explorer active. You get a different couple of files each time.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform