Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object vs. array?
Message
De
24/08/2009 11:37:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01420180
Message ID:
01420201
Vues:
107
>Hi,
>
>I am using arrays as way to pass the information from UI to BIZ/DA objects but thinking about changing to objects (using SCATTER/GATHER). In terms of memory use, do objects require more memory?

About
array ~ 16 bytes/item or more
obj property~ 104 bytes/item or more

Each property of an object has a name,
can be an object and can become recursive ...

Object's Scatter/Gather is more slow,
but it uses a not ordered name match copy,
array uses a fixed ordered copy.

Conveniences consume resources,
this is a universal rule ...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform