I am writing a site in PHP and I am noticing that the page is taking 3-5 seconds to load (from a remote server), which is unacceptable. The software relies on around 12 classes to function correctly. I was wondering how much of a performance gain I would get if I rewrote most of the classes to just use regular php functions.
Thanks for any input.
Edit: I rely primarily on Redis, and using a simple MySQL query here and there.
Functions or classes should make little to no difference (totally negligible) : that’s not what is making your website / application slow.
Hard to give you more information, as we don’t know how your setup looks like, but you might want to take a look at the answer I posted to this question : it contains some interesting ideas, when it comes to performances of a PHP application.
BTW: 12 classes is really not a big number of classes, if I may…