Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to get a collection of objects into an array
Message
From
21/06/2000 20:36:59
 
 
To
21/06/2000 20:25:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00380481
Message ID:
00382973
Views:
24
>Daniel -- I am not aware of a native function to handle this, but one note that may help: your code will run more quickly if you declare a local array, do all the adding into that array, and then coppy that array at the end into the form level array. VFP is relatively slow at moving data into and out of form-property arrays, at least compared to local arrays. Even the later ACOPY probably won't cost you as much time as you will save with a local array.

You're correct it is about 50% slower to populate a array that is a property vs populating a local array. However, for 60K elements each it's only about the difference between .115 seconds for a local array vs .170 seconds. Rather insignificant IMHO.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform