Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mono for FoxPro?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01441641
Message ID:
01442798
Vues:
138
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform