Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if class is light or heavy
Message
De
22/07/2004 19:39:06
Anthony Testi
Fabtrol Systems Inc.
Eugene, Oregon, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00924940
Message ID:
00927234
Vues:
27
> But if I save a lot of memory/speed with it (session), I will have to live with it.

In reality unless you are planning to instantiate 100s of objects between pauses waiting for user input there is no practical difference between any of the classes ( OK I would stay away from using form, with of course the exception of using a form as a form )

Now I like session because it has it’s own datasession and I prefer that each object keep its own PEMS and Data separate from all others. When I do need to share I tend to use Relation or Line. I find Custom has too many PEMs out of the box.

Again thou if you want to use Custom or container etc. for the majority of your classes go ahead, I doubt even a very fast stopwatch is going to be able to show you any difference. As for memory unless you plan to instantiate 100s of objects and keep them instantiated I doubt you will have any memory problems. Worry about large arrays ( collections? ) Cursors, forms etc. first.

This of course IMO, but based on lots of actual experience thou.

Anthony
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform