Conversation
|
Here is the summary of changes. You are about to add 1 region tag.
This comment is generated by snippet-bot.
|
|
I am was receiving the following error when running the deployment: This is very strange, since To fix this, I deployed with a new function NAME. I believe the reason is the I believe the main fix here is to upgrade the server's version of |
|
Do we have any data on the benefits? E.g., A/B performance? |
|
@grayside no benchmarks, no, but we should definitely do some sanity-checking here. In theory, it should provide significant improvements on all requests, as the entire classmap is loaded into memory before the first request. |
|
Closing since we are not actively tracking this work. Maybe we'll want to come back to this if optimize flag proves optimistic. |
|
This is frustrating, since a lot of work was done to add this sample which could help the performance of Cloud Functions for a lot of our users. Maybe @grayside could suggest someone that might want to pick this up and add it to our docs? |
WIP for preloading in PHP 7.4 Cloud Functions
This demo suggests the users do the following:
Add the following to
composer.json{ "config": { "optimize-autoloader": true }, }Add a
preload.phpfile containing the following:Add a
php.inicontaining the following:opcache.preload=preload.phpAnd that's it! Preloading will work for any/all classes handled by Composer's autoloader