Re: [PHP-DEV] Re: Unicode string iterator performance

2006-02-03 Thread Xuefer
On 2/4/06, Jessie Hernandez <[EMAIL PROTECTED]> wrote: > Hi Andrei, > > Pardon me for my ignorance, as I have not even looked at the Unicode > stuff, but based on what you wrote, what about always allocating two > UChars per codepoint? It would take a bit more space, but then > random-offset indexi

Re: [PHP-DEV] Re: Unicode string iterator performance

2006-02-03 Thread Christian Schneider
First of all I was simply proposing a very generic concept without bothering about the implementation on purpose. If it's not feasible then simply ignore it. Marcus Boerger wrote: caching? There is nothing to cache. And even if we would do that we would make every string an object since we w

Re: [PHP-DEV] Re: Unicode string iterator performance

2006-02-03 Thread Marcus Boerger
Hello Christian, caching? There is nothing to cache. And even if we would do that we would make every string an object since we would need to invalidate the position cache on write operations. Also i agree with the others that most common usage would be accessing a few chars probably changing th