-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHP preloading #13
Comments
The preload file normally does not include cache files, just service classes and the generated container, which must be symlinked because it contains require statements. |
Besides, do you use that feature? I tried it once with bref and it wasn't so great and consistently decreased performance for small requests. |
Yes, I've tried. You just have to be smart about it. https://developer.happyr.com/php-74-preload Symfony 5.1 is bringing some really cool improvements here.
I opened this issue to make sure we dont shoot ourselves in the foot. =) |
If I create a preloading script, then some classes in the cache directory will be preloaded, right?
If we move those classes, they will not be preloaded.
If we symlink them, then we have to do a filsystem lookup, and then we find a preloaded class.
The filesystem lookup will be cached with the default PHP.ini.
But does this mean we should symlink as much as possible?
The text was updated successfully, but these errors were encountered: