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...
PHP Performance Tips?
Moderator: General Moderators
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
For the rest of your answers, check out this article:
http://phplens.com/lens/php-book/optimi ... ng-php.php