Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mono for FoxPro?
Message
From
08/01/2010 11:41:05
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01441641
Message ID:
01442798
Views:
139
Mike,

>>That's really interesting about the performance boost from TLOCAL and TPARAMETER.

I know! It really surprised me too! If you think about it though, it makes a lot of sense. In a weakly typed language such as VFP all variables and parameters are typed as type Object, the most expensive type of all. This means that when VFP uses variables or marshals parameters it has to do extra work just to maintain the type and memory usage of the object. If you use strongly typed variables and parameters YOU, and not the software make the decision during the development process about the type of the variable. This removes the overhead from the event loop. In normal (non COM) VFP you can define variables and parameters with a type but VFP ignores the type and still uses the Object type. When you are developing a COM server you strongly type your parameters so that other languages can use your server but it still does you no good in the VFP environment so far as performance goes.

Steve
Previous
Reply
Map
View

Click here to load this message in the networking platform