Page 1 of 1

PHP Performance Tips?

Posted: Mon Jun 03, 2002 5:21 am
by jbkosman
Hi.

Was wondering if anyone knows the following:

a) are there any performance advantage in using classes instead of regular functions.

b) i have a set of functions that's called via include() every time a page is called. instead of the server calling the functions from disk everytime a user makes a page request, is it possible to load these functions into ram every time php is started? i guess via the php config file?

c) any other performance related tips are welcome.

thanks...

Posted: Mon Jun 03, 2002 6:36 am
by jason
1. No, Objects are in fact, slower than functions.

For the rest of your answers, check out this article:

http://phplens.com/lens/php-book/optimi ... ng-php.php