Re: [RFC] Preloading
| From: | Dmitry Stogov | Date: | Mon, 22 Oct 2018 06:17:25 +0000 |
| Subject: | Re: [RFC] Preloading | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-103362@lists.php.net to get a copy of this message | ||
On Oct 19, 2018 9:39 PM, Rasmus Lerdorf <rasmus@lerdorf.com> wrote:
On Fri, Oct 19, 2018 at 1:17 AM, Dmitry Stogov <dmitry@zend.com<mailto:dmitry@zend.com>> wrote:
Hi Internals,
I would like to start discussion on a Preloadng RFC https://wiki.php.net/rfc/preload
This technology would allow loading some PHP files on server startup and make all the defined
classes and functions to be permanently available in the context of future request (without any
includes). Despite of performance improvement, this technology is going to be used in conjunction
with ext/FFI and JIT.
The implementation is not 100% complete, it misses support for ZTS, because of a error in ZTS
interned strings implementation.
I'll try to fix this in nearest week(s).
Definitely cool.
I think it is going to make the file-cache more important as deploy mechanisms are now going to be
more likely to do a full cache reset on a deploy so being able to quickly repopulate the shared
memory cache from the file cache might help lessen the perf hit of the cache reset.
Yeah. This is a bit unrelated to preloading, but sounds interesting.
Dmitry.
-Rasmus