Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO ARRAY against a cursor?
Message
From
05/08/2019 18:47:10
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
 
 
To
05/08/2019 06:40:09
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01669872
Message ID:
01669909
Views:
58
VFPA 32-bit performance using your code, eliminating the local array declaration and changing last loop to into cursor:
Using COPY TO ARRAY, 10000 passes took 0.079; records in result = 5
Using SQL SELECT, 10000 passes took 0.508; records in result = 5
Using SQL SELECT to cursor, 10000 passes took 0.466; records in result = 5
VFPA x64:
Using COPY TO ARRAY, 10000 passes took 0.086; records in result = 5
Using SQL SELECT, 10000 passes took 0.691; records in result = 5
Using SQL SELECT to cursor, 10000 passes took 0.634; records in result = 5
That's with SET TALK OFF. SET TALK ON and it's heaps slower, with COPY TO ARRAY now slowest- e.g VFPA 32bit:
Using COPY TO ARRAY, 10000 passes took 1.865; records in result = 5
Using SQL SELECT, 10000 passes took 1.364; records in result = 5
Using SQL SELECT to cursor, 10000 passes took 1.403; records in result = 5
SET EXCL also seems to make a slight difference, though that's hardly a surprise.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform