N
nax151
Guest
I read a lot about OOP programming, although i'm still a little bit of confused about what is better in the means of performance.
So the question is:
What should i better use for a robust php application, one big object and call to everything under it like $app->db->function(); and so on with all other objects (9 is exact number), or use many smaller classes and call to them in ways like $db->function(); $member->function etc ??
My personal benchmarks showed that the second way with many smaller classes runs a bit faster and i wanna find out if some other people get same results ...
So the question is:
What should i better use for a robust php application, one big object and call to everything under it like $app->db->function(); and so on with all other objects (9 is exact number), or use many smaller classes and call to them in ways like $db->function(); $member->function etc ??
My personal benchmarks showed that the second way with many smaller classes runs a bit faster and i wanna find out if some other people get same results ...