> 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
;)
>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
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
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
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
5 matches
Mail list logo