rfc:opcache.no_cache

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
rfc:opcache.no_cache [2020/05/23 14:04] – Improve documentation of ini settings, add another example use case tandrerfc:opcache.no_cache [2020/06/13 14:37] – RFC was declined tandre
Line 1: Line 1:
 ====== PHP RFC: Opcache optimization without any caching ====== ====== PHP RFC: Opcache optimization without any caching ======
-  * Version: 0.3+  * Version: 0.4
   * Date: 2020-05-16   * Date: 2020-05-16
   * Author: Tyson Andre <tandre@php.net>   * Author: Tyson Andre <tandre@php.net>
-  * Status: Under Discussion+  * Status: Declined
   * Implementation: https://github.com/php/php-src/pull/5504   * Implementation: https://github.com/php/php-src/pull/5504
   * First Published at: https://wiki.php.net/rfc/opcache.no_cache   * First Published at: https://wiki.php.net/rfc/opcache.no_cache
Line 109: Line 109:
   * Normally, opcache optimizes a file based only on that one file's contents (this makes it safe to read from cache even when loading a different combination of files). When ''opcache.allow_cache=0'' is used, it may be possible to use all of the class, function, constant, etc. definitions parsed from previously parsed files (to eliminate dead code, inline function calls, etc). https://wiki.php.net/rfc/preload mentioned something similar in the Future Scope.   * Normally, opcache optimizes a file based only on that one file's contents (this makes it safe to read from cache even when loading a different combination of files). When ''opcache.allow_cache=0'' is used, it may be possible to use all of the class, function, constant, etc. definitions parsed from previously parsed files (to eliminate dead code, inline function calls, etc). https://wiki.php.net/rfc/preload mentioned something similar in the Future Scope.
  
-===== Proposed Voting Choices =====+===== Vote =====
  
-Add the ''opcache.allow_cache'' ini setting to support opcode optimization without caching. (Yes/No vote, requiring 2/majority)+Voting started on May 30th and ends on June 13th 
 + 
 +<doodle title="Add opcache.allow_cache ini setting to support opcode optimization without caching" auth="tandre" voteType="single" closed="true"> 
 +   Yes 
 +   No 
 +</doodle> 
 + 
 +==== If you voted no, why? ==== 
 + 
 +The [[https://wiki.php.net/rfc/opcache.no_cache#discussion|Discussion]] section mentioned alternative approaches to this RFC. This feedback is being gathered if it may be useful for other work on Opcache such as moving optimizations into PHP's core. 
 + 
 +  - I would only vote for optimizations without caching if Opcache's opcode optimizations were moved into core first. 
 +  - I don't want any form of optimization without caching / I think ''opcache.file_cache'' should be used instead 
 +  - I think different ini options/values should be used to do this 
 +  - Other 
 + 
 +<doodle title="If you voted no on opcache.allow_cachewhy?" auth="tandre" voteType="multi" closed="true"> 
 +   * 1 
 +   2 
 +   3 
 +   * 4 
 +</doodle> 
 + 
 +Also, would you be interested in moving opcode optimizations and the JIT out of the zend_extension opcache into PHP's core? 
 + 
 +<doodle title="I would be interested in moving opcode optimizations into core" auth="tandre" voteType="single" closed="true"> 
 +   * Yes 
 +   * No 
 +</doodle>
  
 ===== Changelog ===== ===== Changelog =====
  
 0.2: Previously, the ini setting override to disable caching was ''opcache.no_cache=1''. This was changed to ''opcache.allow_cache=0'' to avoid double negatives and to be consistent with naming of other ini settings such as ''allow_url_fopen'' and ''allow_url_include''. 0.2: Previously, the ini setting override to disable caching was ''opcache.no_cache=1''. This was changed to ''opcache.allow_cache=0'' to avoid double negatives and to be consistent with naming of other ini settings such as ''allow_url_fopen'' and ''allow_url_include''.
 +
 0.3: Fix documentation of changes to ''opcache_get_status()'' 0.3: Fix documentation of changes to ''opcache_get_status()''
 +
 0.4: Improve documentation of ini settings, add another example use case. 0.4: Improve documentation of ini settings, add another example use case.
  
 ===== References ===== ===== References =====
  
-https://externals.io/message/109959 opcache.no_cache prototype: Opcode optimization without caching+https://externals.io/message/109959 "opcache.no_cache prototype: Opcode optimization without caching"
  
 +https://externals.io/message/110187 "[RFC] opcache.no_cache: Opcache optimization without any caching"
rfc/opcache.no_cache.txt · Last modified: 2020/06/13 17:45 by tandre