Skip to content
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

Precompiled bytecode for docker images #25

Open
jackinloadup opened this issue Jun 26, 2018 · 1 comment
Open

Precompiled bytecode for docker images #25

jackinloadup opened this issue Jun 26, 2018 · 1 comment

Comments

@jackinloadup
Copy link
Contributor

Used on AORG atm

Looks to be a great win especially if we can package the file cache inside docker.

https://medium.com/@dylanwenzlau/500x-faster-caching-than-redis-memcache-apc-in-php-hhvm-dcd26e8447ad

; configuration for php opcache module
; priority=10
zend_extension=opcache.so
opcache.file_cache=/var/php/opcache
opcache.file_cache_only=1 # Useful for CLI
opcache.file_cache_consistency_checks=1
opcache.memory_consumption=128 # MB
opcache.max_accelerated_files=10000
opcache.max_wasted_percentage=10

@jackinloadup
Copy link
Contributor Author

jackinloadup commented Nov 7, 2018

Drupal startup time and opcache - faster scaling for PHP in containerized environments - Jeff Geerling.

His assessment doesn't quite look into precompiled delivery. It looks more into speeding up the normal boot compile process via possible PHP 7.4 functionality called Preloading which is currently in RFC phase.

@jackinloadup jackinloadup changed the title research possiblity of switching to file based opcache Precompiled bytecode for docker images Nov 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant