3 ms·
It's great to see such a significant improvement, but it goes to show just how limiting the CGI era architecture really is. A modern persistent web apps runnin
by laurencerowe 12y ago
It's great to see such a significant improvement, but it goes to show just how limiting the CGI era architecture really is.
A modern persistent web apps running in Python/Java/Ruby/etc is able to perform preparatory work at startup in order to optimize for runtime efficiency.
A CGI or PHP app has to recreate the world at the beginning of every request. (Solutions exist to cache byte code compilation for PHP, but the model is still essentially that of CGI.) Once your framework becomes moderately complex the slowdown is painful.
- eru 12y agoIf you write it right, you should even be able to cache the state of the whole execution right until your code sees the first byte that depends on the user request or the environment. Sort of like a copy-on-write, but it's copy-on-read.