Proposing a new 'cache_key' streams operation

php.internals

Unnamed Person

9 years ago
Hi, PR is : https://github.com/php/php-src/pull/1711 This PR creates a mechanism to be used by opcode caches to determine whether a stream-wrapped URI is cacheable, and the key to use when caching it. The first usage for this operation is to opcode-cache the PHP code managed by PCS, which is essential when considering migrating part of a core extension from C to PHP. Please note that the PR *does not* include the changes to make opcache use this new mechanism. The reason is that the required changes are far from trivial, the opcache code is complex, and I prefer someone more familiar with it to implement the changes. Please comment. Regards François

Adam Baratz

9 years ago
> > This PR creates a mechanism to be used by opcode caches to determine > whether a stream-wrapped URI is cacheable, and the key to use when > caching it. >
Thanks for sharing this. Very interesting idea. Have you posted an RFC yet? That'll help lay out the bigger questions and guide the conversation. There are some notes here if you haven't done one before: https://wiki.php.net/rfc/howto Thanks, Adam

Unnamed Person

9 years ago
Hi, Le 09/03/2017 à 19:58, Adam Baratz a écrit :
> Thanks for sharing this. Very interesting idea. Have you posted an RFC > yet? That'll help lay out the bigger questions and guide the > conversation. There are some notes here if you haven't done one before: > https://wiki.php.net/rfc/howto
I am currently writing the RFC. Regards François