Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object vs. array?
Message
De
24/08/2009 11:35:53
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01420180
Message ID:
01420199
Vues:
99
Hi Dmitry,

Based on our implementations, I would recommend that you stay away from using objects to hold data. This decision becomes very critical when you get to 100MB+ data objects. And if you intend to hold these objects in a collection, then you're even more in dire straits. We basically hold what would be comparable to the DataSet class in .Net in memory and it is literally killing our application. We had to write code to clear the memory buffer. Performance is not optimized as well.

Data objects are very useful when used in small sizes. One of the beauties of an object is that you can reference them elegantly compared to arrays (ie. objProduct.ProductId compared to aProducts[1,1]).

Again, this is just based on our implementations.


>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?
ramil
~~ learning to stand still
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform