Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recursive loop and SCAN
Message
De
30/07/2002 02:43:46
 
 
À
30/07/2002 02:40:18
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00683191
Message ID:
00683827
Vues:
44
>In my case, it was a treeview, and the recursive approach was used while building the key. Then when the treeview needed to be built, the table was ordered using this key, and the treeview was built within a single linear pass through the records. The main (and practically only) reason for this was speed: the table changed very rarely, but the treeview had to be built many times. So this was just a way to have the results of the recursion saved and ready. The difference in speed turned out to be quite significant, somewhere to 6:1 for 200 records.

Do you think I would obtain the same ratio when working with a cursor? Our cursor is pre-built before creating the treeview object. So, if I have 200 records in it, I'll have 200 records in the treeview. Do you think using linear approach here would make it faster as well?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform