-
Notifications
You must be signed in to change notification settings - Fork 18
Support for PHP 7.4 Preload feature #98
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
Comments
This one is MUST HAVE |
Comparison of means: Here is some evidence: I managed to compile 7.4 and tested just with homepage only. |
Magento will be the first class citizen of that feature. |
To do preload there is no need to make anything special, just add standalone loader and generate file with list of files to preload. |
Saying it like so makes it sound like a handful of minutes to get a good preload configuration setup for Magento but i can't image it to be that simple. |
It is simple, just get opcode loaded files |
@kirmorozov care to share a link with core patching to get 7.4.1 working with magento 2.3.4? |
Can you share the list of files you've preloaded in your test @kirmorozov ? |
Yes, but magento doesn't support php 7.4. |
Any updates on this? |
Magento team have done an internal investigation on this feature request and decided not to implement it as part of the core codebase. The preload feature can still be used as part of server configuration setting it up with the consideration of the specifics for each individual Magento instance. Internal Jira ticket: https://jira.corp.magento.com/browse/MC-31789 |
@sivaschenko Would you share some more reasoning as to why? #1 Magento complaint is performance and it appears as if this feature will help mitigate this problem. |
@JosephMaxwell I believe it was based on the possible performance benefits comparing to efforts of implementation and maintaining the solution, and also the fact that preload feature can still be utilized without adding a specific preload script to the magento codebase (#98 (comment)) |
@sivaschenko |
Why preloading everything is not acceptable? |
@JosephMaxwell @ilnytskyi can we use this package for preload? I tried to add that script and works fine for me |
Although PHP 7.4 is still very much in development allowing for M2 to leverage the newly merged "preload" feature could have massive benefits for overall site speed since there is quite a bit of bootstrapping that has to happen in M2 to respond to a request.
RFC - https://wiki.php.net/rfc/preload
Git Commit - php/php-src@f6d227e
The text was updated successfully, but these errors were encountered: