[PHP] Big Words (RE: [PHP] Classes and performance bottlenecks)

2001-08-14 Thread Jason Murray
> Zend cache will ameliorate this to a great extent -- as the > file is loaded once into RAM and left there. ^^ Wow, not often I see a new word like *that* around :) And for those of us who don't know: http://www.dictionary.com/wordoftheday/archive/1999/07/16.html ;)

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Richard Lynch
>require_once("Smarty.class.php"); > require_once("DB.php"); > ?> I used to think that require_once() was quite slow, and that doing your own: if (!defined('smarty_class')){ define('smarty_class'); class Smarty{ ... } } was way more better. It might depend on how *MANY* things you've

Re: [PHP] Classes and performance bottlenecks

2001-08-14 Thread Christian Reiniger
On Tuesday 14 August 2001 08:37, Maxim Maletsky wrote: > See, there's also a time needed for the server to read the included > file - an extra effort for your hard disk. > If you'd put everything in one file it would work for you faster, but, > of course, less portable. I disagree. Aftre the firs

RE: [PHP] Classes and performance bottlenecks

2001-08-13 Thread Maxim Maletsky
ferent. Cheers, Maxim Maletsky -Original Message- From: Artyom Plouzhnikoff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2001 2:22 PM To: [EMAIL PROTECTED] Subject: [PHP] Classes and performance bottlenecks I have a strange problem with PHP 4.0.4pl1 and above. It looks like in

[PHP] Classes and performance bottlenecks

2001-08-13 Thread Artyom Plouzhnikoff
I have a strange problem with PHP 4.0.4pl1 and above. It looks like including a file that contains classes can become a major performance bottleneck My machine is an Intel Pentium ]I[ 667Mhz, 128Mb RAM running RedHat Linux 7.1; I installed PHP as a DSO module. I used ab (Apache Benchmark) for