Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object vs. array?
Message
From
24/08/2009 11:35:53
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01420180
Message ID:
01420199
Views:
100
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform