You are here: Re: string concat vs. join/implode « PHP Programming Language « IT news, forums, messages
Re: string concat vs. join/implode

Posted by Rami Elomaa on 05/16/07 06:16

"NoWhereMan" <nowheremanNOSPAM@flashmailSPAM.com> wrote in message
news:1i9u0t6f74aeq$.1wyfwn8eujrji$.dlg@40tude.net...
> On 14 May 2007 15:02:01 -0700, ZeldorBlat wrote:
>
>> I replaced 10 with 100000 and ran each function through a profiler.
>> The first one (using concatenation) was approximately 25% faster than
>> the one using implode().
>
> nice :)
>
> Could you please repeat the test with a long string isntead of $i?
> maybe a $str .= str_pad($i, 10^10 , "___"); so that you have a very long

10^10? Surely you mean pow(10,10), not 10 xor 10?

--
Rami.Elomaa@gmail.com

"Good tea. Nice house." -- Worf

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация