I don't think you mean 1,000 times of 2M elements = 2 billions of elements in 
an array???

Or you mean looping the query 1,000 times, if so. I just did loop 1,000 times 
of binary search of text array of 20,000 elements and it took 8ms. Looping 
1,000 times for 2M elements took 12ms

Anyone try it with object since I am still using v13.

Alan Chan

4D iNug Technical <4d_tech@lists.4d.com> writes:
>
>try it 1000 times and compare it with the object method
>
>> Am 10.11.2016 um 16:18 schrieb 4d_tech-requ...@lists.4d.com:
>> 
>> Find in Array is sequential search. I just try to use Binary search on 
>> sorted text array with 2,000,000 elements. It took 0 ms.
>
>

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to