Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is something that I was thinking about a long time ago. It turns out that the gain isn't worth it because of how good the bytecode caches are.

The frameworks are slow in places because of some of the techniques used to make development faster and easier - such as autoload. autoload is notoriously difficult to bytecode cache

It isn't a coincidence that the pitch here is against frameworks in PHP and not plain PHP itself. I'd like to see a benchmark against plain PHP, I bet there isn't much of a difference.

If you really need to optimize this stuff just go into your PHP framework and rip out autoload and any fancy reflection stuff (extract, eval). Put in straight include() or require(). Use PHP for templating or a templating system that compiles to straight PHP which is include()'d. setup APC..

Saves you switching development environment, retraining developers, increasing dev time and I bet the difference in benchmarks would be pretty negligible.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: