Rewriting all the application in procedural programming is probably the worst thing you can ever do. Object oriented programming is not about performance gain but writing programmer-friendly and easily maintainable applications (among others).
You should not ever think about rewriting an OO application procedural. That's not the purpose. If you ever have bigger resource consumption using OO rather than procedural programming (and that is very unlikely) you should probably think about better scaling the app. Hardware nowadays is not that expensive.
On the other hand, your application has many possible bottlenecks and OO is probably not even on the list.
Did you check:
- your Internet connection?
- your server's Internet connection?
- your ping loss to your server?
- your server's configuration? (Apache/Nginx/Lighttpd or whatever it is)
- your database server's configuration?
- your database queries?
- your server's load?
- the timing for a connection to Redis?
- your firewall's rules for the ports used by Redis?
- your Redis' configuration? (
maxclients
, timeout
)
If you answered NO to at least one question above, please do check that and if the problem persists, let me know!