Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Guidelines for using array vs. cursor?
Message
From
14/03/2005 10:12:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
00994958
Message ID:
00995489
Views:
14
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform