Re: com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c
ext/opcache/ZendAccelerator.h ext/opcache/zend_accelerator_module.c
| From: | Yasuo Ohgaki | Date: | Thu, 26 Sep 2013 01:46:43 +0000 |
| Subject: | Re: com php-src: Added function opcache_compile_file() to load PHP scripts into cache without execution.: NEWS ext/opcache/ZendAccelerator.c ext/opcache/ZendAccelerator.h ext/opcache/zend_accelerator_module.c |
||
| References: | 1 2 3 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-73285@lists.php.net to get a copy of this message | ||
Hi Adam and Dmitry,
On Thu, Sep 26, 2013 at 5:58 AM, Dmitry Stogov <dmitry@zend.com> wrote:
> This function is going to be used only for cache warm-up (to load files
> into cache without execution).
> I don't think it may be useful in application code.
> It 's not a big problem having warning and hiding it with @ if necessary.
>
Rails has feature called "eager loading" that loads all scripts at start up
for better user experience with applications.
This could be used implement the same feature in PHP if it's available
in user space. Since this is ZEND_FUNCTION, I suppose it is available.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net