Newsgroups: php.i18n,php.internals Path: news.php.net Xref: news.php.net php.i18n:918 php.internals:21783 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33476 invoked by uid 1010); 3 Feb 2006 07:30:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 33455 invoked from network); 3 Feb 2006 07:30:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 3 Feb 2006 07:30:06 -0000 X-Host-Fingerprint: 66.249.92.198 uproxy.gmail.com Received: from ([66.249.92.198:13367] helo=uproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 99/65-41770-E7603E34 for ; Fri, 03 Feb 2006 02:30:06 -0500 Received: by uproxy.gmail.com with SMTP id j40so120302ugd for ; Thu, 02 Feb 2006 23:30:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=eZamFRgrfnACaNh5SFC/uqhOvQKvsiyE/b1vXaT9zGrH3Taya8vx3PKvWc6KTO8oUXzvYM4dvLbFzqxXp6SnJAsVmrmUpF5v815Vdlfh1UZ58c5QHwIFGdLroat6fPDT8Ide6x21X7IDahSrj217vHA7dwI2mQ1OXHpoEPQXiOE= Received: by 10.49.10.14 with SMTP id n14mr409436nfi; Thu, 02 Feb 2006 23:30:02 -0800 (PST) Received: from ?130.83.72.222? ( [130.83.72.222]) by mx.gmail.com with ESMTP id p43sm1025359nfa.2006.02.02.23.30.02; Thu, 02 Feb 2006 23:30:02 -0800 (PST) Message-ID: <43E30658.8080300@gmail.com> Date: Fri, 03 Feb 2006 08:29:28 +0100 User-Agent: Thunderbird 1.5 (X11/20051025) MIME-Version: 1.0 To: Andrei Zmievski CC: Ilia Alshanetsky , PHP Developers Mailing List , php-i18n@lists.php.net References: <43E2B014.1050103@prohost.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Unicode string iterator performance From: stefan.walk@gmail.com (Stefan Walk) 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