You are here: Re: [PHP] Is there a big speed difference... « PHP « IT news, forums, messages
Re: [PHP] Is there a big speed difference...

Posted by Chris Shiflett on 06/09/05 20:33

Brian Dunning wrote:
> I have an include file with about 6 lines of code, just text parsing.
> If I have to loop through 5000 records, is there a big difference
> between (a) calling this include file 5000 times, and (b) defining a
> function and just calling the function 5000 times?

Yes, there is a big difference. Including files is expensive, even with
a compiler cache.

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

 

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

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