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

Click here to load this message in the networking platform