5 ms·
So after looking at the slidedeck on the authors blog, I'm rather confused. How does FrankenPHP keep the code in memory if each request is in a separate memory
by timw4mail 4y ago
So after looking at the slidedeck on the authors blog, I'm rather confused. How does FrankenPHP keep the code in memory if each request is in a separate memory space?
- marcofatica 4y agoThey're probably using PHP's built in opcache or something they rolled themselves OPcache improves PHP performance by storing precompiled script bytecode in shared memory https://www.php.net/manual/en/intro.opcache.php https://www.php.net/manual/en/intro.opcache.php
- chx 4y agoopcache is definitely on https://github.com/dunglas/frankenphp/blob/f97f56d45a403342bb215208f664adab9e7e6013/Dockerfile.dev#L55 https://github.com/dunglas/frankenphp/blob/f97f56d45a403342b...
- kingkool68 4y agoSee Preloading which landed in PHP 7.4 https://stitcher.io/blog/preloading-in-php-74 https://stitcher.io/blog/preloading-in-php-74