Information générale
Catégorie:
Produits tierce partie
Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement