Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] Proposing a new 'cache_key' streams operation

Posted by François Laupretre 
François Laupretre
[PHP-DEV] Proposing a new 'cache_key' streams operation
March 09, 2017 06:30PM
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


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
>
> 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
François Laupretre
Re: [PHP-DEV] Proposing a new 'cache_key' streams operation
March 10, 2017 11:30AM
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
Sorry, only registered users may post in this forum.

Click here to login