4 ms·
> if you're freshly creating all these objects and a big ass dependency graph from scratch per request for each request That's not how modern PHP works.
by debacle 9y ago
> if you're freshly creating all these objects and a big ass dependency graph from scratch per request for each request
That's not how modern PHP works.
- icedchai 9y agoHow's it work then?
- debacle 9y agohttps://community.1and1.com/php-7/ https://community.1and1.com/php-7/ That article isn't great, but okay enough for this discussion. There's a great deal of interpreter level caching + object caching (in more advanced system) that allows modern PHP to reap a lot of the benefits of the "everything fresh every request" model while also being faster than pretty much anything but Lua and Perl.