Req #68202 [Nab]: equivalent to persistent_compile_file to a string
| From: | dmorilha at gmail dot com | Date: | Thu, 09 Oct 2014 23:03:18 +0000 |
| Subject: | Req #68202 [Nab]: equivalent to persistent_compile_file to a string | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-187994@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=68202&edit=1
ID: 68202
User updated by: dmorilha at gmail dot com
Reported by: dmorilha at gmail dot com
Summary: equivalent to persistent_compile_file to a string
Status: Not a bug
Type: Feature/Change Request
Package: opcache
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
thanks johannes
Previous Comments:
------------------------------------------------------------------------
[2014-10-09 21:59:17] johannes@php.net
A zend_file_handle can describe a memory mapped file. See https://github.com/johannes/pconn-sapi/blob/master/pconnect-sapi.c#L281
for an example.
------------------------------------------------------------------------
[2014-10-09 20:39:45] dmorilha at gmail dot com
Description:
------------
Would it be possible to expose a function similar to persistent_compile_file which accepts a string
instead of a pointer to zend_file_handle?
I would like to offer a require statement which accept multiple arguments, concatenate their content
and add the result into the opcache.
It looks like multiple requires perform slower when compared with a single require with all the code
merged
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68202&edit=1