Re: [PHP-DEV] Unicode string iterator performance
[email protected] (Stefan Walk)
| Newsgroups | php.i18n,php.internals |
|---|---|
| Message-ID | <[email protected]> |
Andrei Zmievski wrote: > On Feb 2, 2006, at 5:21 PM, Ilia Alshanetsky wrote: >> >> The real test however would be random character access, rather then >> sequential scans from start to end :-). > > How often do you access random characters in a string vs. sequential > scans? Which is the more likely scenario in PHP scripts? I think it's > the latter. > > -Andrei > > --PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > I think the most common usage would be grabbing one or a few characters and then going to do something else... if that happens alot, it will look more like like "random" string access than sequential scans. Regards, Stefan