Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which is faster: array or cursor?
Message
 
 
À
10/03/2009 13:12:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01386748
Message ID:
01386970
Vues:
81
Tamar,

Now I wonder why Calvin never just built B+Tree indexes on each array column? *g*

>Finally, I tested searching for data in each case. Here, the cursor was a clear winner. For larger data sets, SEEKing in a cursor was an order of magnitude faster than searching in an array with ASCAN(). The cursor’s advantage was even bigger when the search item wasn’t in the data set. For 10,010 items, searching for a non-existent item in an array took 50 times as long as SEEKing the same non-existent item in a cursor.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform