Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ISSUE: uses LOOP for faster loop cycles
Message
From
04/05/2005 03:43:04
 
 
To
01/05/2005 12:41:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01009925
Message ID:
01010678
Views:
21
Hi Fabio,

>- use of the string variables into VFP command.
>
? LEN(m.String)
? LEN(@m.String)  && don't copy the string into the VM buffer
I've wondered as well why such an approach seems to be missing. Only because of Len(StrTran(,,)) or Len(alltrim()) contructs ? Could the parser use MDotted variables to automatically use such an optimization across other vfp internal functions ? And this seems to have gotten worse in vfp9, probably some checks against buffer overruns.

>and many others are more useful.
A few of my pet peeves: I'ld like to have an option to mark a function called as "inline".
In the case of redundancy saving 1 - 3 liners without need of a local stack this can eliminate the call overhead of a function in often called loops. And NO redundancy in the code <g>!
Or perhaps have a new keyword specifying [optimize..nooptimize] for each condition:
sometimes for an application it makes sense to have multiple indices describing subset filtering, while at certain queries I'ld like to use only a specific index with high selectivity - relieving me from those ugly if seek() - scan while constructs. Probably the best way to speed up apps with large dbf's or LAN-bottlenecks.

regards

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform