Object-oriented code is standard, but not for performance reasons. It is really about maintainability.
Code rate rarely occurs due to any real consequences in web applications. I / O is much more appropriate, and most of the optimization users are ultimately designed to reduce I / O:
- Permanent database connection
- Caching data fragments
- Page Caching
- Client Side Cache Header
Any significant CPU intensive tasks are usually handled by compiled plugins and made available to the interpreted language. Some common examples:
- PDF Generation
- Image Processing (Imagik, GD)
- Cryptography (OpenSSL)
source share