Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compile or Not Compile?
Message
De
11/05/2000 12:25:26
 
 
À
11/05/2000 04:58:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00368440
Message ID:
00368631
Vues:
17
>I am working on an application where the developer is using several modules. The application is made up of many apps and a main exe. None of the classlibs are compiled. Instead they are distributed with the application and called as needed. The argument for not compiling the classes is that there is no appreciable performance gain, and the apps need access to the class libs. (Never mind that SET CLASSLIB TO cLib IN cEXE can be used here.)
>

Actually, they are compiled, but you have excluded them from the .EXE so that they can be deployed externally. You could actually deploy the VCX/VCT pairs without the source code - simply clear the Methods field after having compiled the classlib - the object code is still there in the ObjCode field.

>I have always compiled all my clasess into my exe and have realized an enormous speed gain. Can anyone point me to some information that would enlighten me further on this topic?

Including the classlibs in the .EXE may improve overall system performance in several ways; it requires fewer files to be open at any instant in time, there are fewer directory entries which reduces the directory search overhead, and your app is less subject to the woes of a mismanaged search path. Keeping them separate makes it easier to update them without sending out one huge file easier, but it also makes you more subject to accidental versioning issues when one library gets out of step with the rest of the application. I find that my clients prefer that I exclude the Forms and Reports at a minimum, so that they can easily make minor changes or creeb a bit of code from my stuff. If the apps were going to be marketed as a shrink-wrapped product targeted at the typical end-user, the single .EXE looks prefereable.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform