[PHP-DEV] open/close calls of include_once/require_once files.

2009-11-12 Thread Basant Kukreja
Hi, When php script includes a script, php engine compiles the included file. When opcode caching extensions e.g apc are used, re-compilation is avoided by apc. But there is a performance problem here. Since php code uses zend_stream_open to open the included file, open/close system call is

Re: [PHP-DEV] open/close calls of include_once/require_once files.

2009-11-12 Thread Rasmus Lerdorf
A couple of notes. You make it sound like this happens on all includes. It is only include_once/require_once that have this problem. Regular include/require do not. This has been addressed in APC by overriding the opcode and providing our own opcode handler for this case. See

Re: [PHP-DEV] open/close calls of include_once/require_once files.

2009-11-12 Thread Basant Kukreja
On Thu, Nov 12, 2009 at 11:54:55AM -0800, Rasmus Lerdorf wrote: A couple of notes. You make it sound like this happens on all includes. It is only include_once/require_once that have this problem. Regular include/require do not. Sorry for making it confusing. I meant only for