RE: Internationalisation and MB strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: bk@xxxxxxxxxx [mailto:bk@xxxxxxxxxx] On Behalf Of Yeti
> Sent: Friday, August 01, 2008 10:58 AM
> To: Andrew Ballard
> Cc: PHP General list
> Subject: Re:  Internationalisation and MB strings
> 
> Oh right. Doing 1 measurement only is not even worth a theory.
> 
> Well, I'm wondering how much PHP can speed that result up, since we are
> calling the same function with the same parameter 10000 times. Wouldn't
> it
> be even more realistic if we called it with changing strings?

---8<--- snip

> > I ran this script several times, and the results below are fairly
> typical:
> >
> > MB_STRLEN took : 0.054733037948608 milliseconds
> >
> > STRLEN took : 0.037568092346191 milliseconds
> >
> >
> > The multi-byte function is slower, but not even by a factor of 2 on
> my
> > development machine.

10000 * 0.02 = 200 milliseconds.

I don't think you've got anything to worry about... unless counting to "2" is an unacceptable wait for your process. :)


Todd Boyd
Web Programmer





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux