stable

Clone or download

Read-only

Introduce preloading of Core

This is a first step to experiment with Preloading. It focuses on Core preloading (as well as themes) to reduce the complexity. How to test: 1. Generate preloads with make composer preload MODE=Prod 2. Edit /etc/opt/remi/php74/php.d/10-opcache.ini and set opcache.preload=/usr/share/tuleap/preload.php opcache.preload_user=codendiadm 2. Restart php-fpm: systemctl restart tuleap-php-fpm And that's it! Blackfires reports an improvement between 12 to 23% depending on resources. That's not bad at all :) Part of request #22563 [Performances] preload Tuleap files Change-Id: I00c38eb1078076cc43c68cfd541a46839da17cc3

Modified Files

Name
M Makefile +17 −1 Go to diff View file
A preload.php +29 −0 Go to diff View file
A src/common/Preload/PreloadGenerator.php +117 −0 Go to diff View file
M src/composer.json +57 −0 Go to diff View file
M src/themes/BurningParrot/composer.json +7 −0 Go to diff View file
M src/themes/FlamingParrot/composer.json +7 −0 Go to diff View file
M tools/rpm/Makefile +1 −1 Go to diff View file
A tools/utils/preload/check-preload.php +30 −0 Go to diff View file
A tools/utils/preload/generate-preload.php +38 −0 Go to diff View file
A tools/utils/preload/verification-loader.php +38 −0 Go to diff View file