Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Guidelines for using array vs. cursor?
Message
De
14/03/2005 10:12:38
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/03/2005 05:58:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00994958
Message ID:
00995489
Vues:
16
>>>Are there any guidelines for using array rather than a cursor? I have found that I prefer using cursors because of the ease of watching my data during development. Are there certain times were using an array is more beneficial?
>>
>>Yes of course there are places where arrays are more beneficial. ie:
>...
>>Arrays are faster then cursors (not always, depends on what you do).
>
>Cetin
>
>There were times in the past where I assumed arrays were faster, what with their being in memory and all, but I later found them to be slowing down my app. and, using cursors instead, I improved the speed manifold.
>
>Terry

Terry,
"(not always, depends on what you do)" was intentional:) In a few tests I can demonstrate they're faster and just demonstrate the reverse with another test - and yet another test to show they both are slower then lowlevel:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform