v13 testing
position - no * find character (u + umlaut) end of 2,000,000 length text
56ms +/- ms

Position (*) - find same character at end of 2,000,000 length text
3 ms +/- 1ms

so... when you know that diacritcallity, or capitalization, is important 
Position with * is MUCH faster -- at least in v13


> Oops... my bad. Reading too fast. Please ignore this.
> 
> Alan Chan
> 
> 4D iNug Technical <[email protected]> writes:
>> I found out why your result is quite different from mine. In your 
>> code, you evaluate the time once per execution of position. However, 
>> the replace string was evaluated once per 10,000 replacement (per 
>> execution of replace string).
> 
> 
> **********************************************************************
> 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:[email protected]
> **********************************************************************
------------
Hell is other people 
     Jean-Paul Sartre
**********************************************************************
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:[email protected]
**********************************************************************

Reply via email to