Y
Hacker News
new
|
ask
|
show
|
jobs
by
timw4mail
1340 days 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?
2 comments
marcofatica
1340 days ago
They'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
link
chx
1340 days ago
opcache is definitely on
https://github.com/dunglas/frankenphp/blob/f97f56d45a403342b...
link
kingkool68
1340 days ago
See Preloading which landed in PHP 7.4
https://stitcher.io/blog/preloading-in-php-74
link