Re: Unicode string iterator performance

From: Date: Fri, 03 Feb 2006 07:29:28 +0000
Subject: Re: Unicode string iterator performance
References: 1 2 3  Groups: php.i18n php.internals 
Request: Send a blank email to internals+get-21783@lists.php.net to get a copy of this message
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

« previous php.internals (#21783) next »