[VOTE] Opcache optimization without any caching

php.internals

tyson andre

6 years ago
Hi internals, I have opened the voting for https://wiki.php.net/rfc/opcache.no_cache The proposal is to make the opcode optimizer and JIT available without opcode caching, through a new setting opcache.allow_cache. The voting period ends on 2020-06-13. Thanks, - Tyson

Marco Pivetta

6 years ago
Hey Tyson, The naming is extremely wonky: allow_cache to allow_optimization? 🤔 Nonetheless, this is extremely valuable for widely used binaries and long running processes, so 👍 On Sat, May 30, 2020, 17:55 tyson andre <tysonandre775@hotmail.com> wrote:

tyson andre

6 years ago
Hi Marco, > The naming is extremely wonky: allow_cache to allow_optimization? 🤔 > Nonetheless, this is extremely valuable for widely used binaries and long running processes, so 👍 I'm not fully clear on what you mean for opcache.allow_optimization to do - you'd have to combine it with changes to other settings (e.g. allow it to override opcache.enable=0 to optimize but not cache if the opcache extension is loaded). The setting opcache.optimization_level is already available to enable or disable *optimizations*. The separate setting in https://wiki.php.net/rfc/opcache.no_cache to enable or disable caching seemed like the easiest to understand for me. With opcache.enable=1, opcache.enable_cli=1 (if CLI), and opcache.allow_cache=0, optimizations are enabled, but caching is disabled. Thanks, - Tyson

Marco Pivetta

6 years ago
On Sat, May 30, 2020, 18:20 tyson andre <tysonandre775@hotmail.com> wrote:
> Hi Marco, > > > The naming is extremely wonky: allow_cache to allow_optimization? 🤔 > > Nonetheless, this is extremely valuable for widely used binaries and > long running processes, so 👍 > > I'm not fully clear on what you mean for opcache.allow_optimization to do > - you'd have to combine it with changes to other settings > (e.g. allow it to override opcache.enable=0 to optimize but not cache if > the opcache extension is loaded). > The setting opcache.optimization_level is already available to enable or > disable *optimizations*. > The separate setting in https://wiki.php.net/rfc/opcache.no_cache to > enable or disable caching seemed like the easiest to understand for me. > > With opcache.enable=1, opcache.enable_cli=1 (if CLI), and > opcache.allow_cache=0, optimizations are enabled, but caching is disabled >
Thanks, makes much more sense.

tyson andre

6 years ago
Hi internals, I've added an "If you voted no, why?" section to this RFC https://wiki.php.net/rfc/opcache.no_cache#if_you_voted_no_why Having this feedback may be useful to others working on similar things such as moving optimizations into core, in the future. If there's any other feedback, let me know. Thanks, - Tyson