4 ms·
PHP 7 has Zend OPtimizer built in, basically a caching bytecode compiler. Previous versions used to use the APC extension to serve the same purpose.
by thawkins 8y ago
PHP 7 has Zend OPtimizer built in, basically a caching bytecode compiler. Previous versions used to use the APC extension to serve the same purpose.
- bpicolo 8y agoThat's distinct from JIT - it's just a way to prevent having to re-parse/compile to byte code every single request to your site (no other language has this issue)
- ars 8y ago> no other language has this issue Because no other language is as easy to deploy. With PHP you edit the PHP file, and that's it. It's deployed. No clearing cache, no compiling, packaging, nothing. It's one of the major factors in how good of a language it is. If it's needs this optimization as a result of that, it's completely worth it, and other languages should copy that.
- bpicolo 8y ago> Because no other language is as easy to deploy Nah, it's because PHP isn't an actively running process. The overhead of starting a process isn't what it used to be in shared web infra world before. It's cheap to spin up a small VM now. And there are other similar constructs, e.g. FaaS