You are here: Re: selecting <option> with preg_replace vs loop - which is better? « PHP Programming Language « IT news, forums, messages
Re: selecting <option> with preg_replace vs loop - which is better?

Posted by Rik on 05/19/06 22:30

zorro wrote:
> and does testing merely mean running it 100 000 times and clocking it?

You could, it would give you some valuable information. 100 000 is a bit
much though.

Rule of thumb: regexes are slow, don't use them if other simple code can do
the job as easily and dynamically.

Grtz,
--
Rik Wasmus

 

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

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