Never checked but FIND and LOCATE could be the same subroutine.

Lookup in a sorted string is definitely faster - with randomly distributed
search strings the expected number of comparisons are halfed.

If the strings to lookup tend to be early in the sort order the performance
is even better.

But You need a good number of searches to pay for the time used to sort.

-- mats


Barry Brevik wrote:

When using FIND or LOCATE on a dynamic array, is one faster than the other, and 
is there any reason to sort the array to (hopefully) improve the speed of FIND 
or LOCATE?

I don't need to use LOCATE... BY... SETTING, I'm just doing a raw FIND or 
LOCATE.

Barry Brevik
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to