phar & apc

php.internals

steve roussey

19 years ago
Before reading the thread on the idea of a PHP 5.3 branch, I had never heard of phar, so please excuse my neophyte questions, but I couldn't find a reference with the information. On a single website application environment (as opposed to a shared host type of thing), what are the performance characteristics of using a phar file to replace a largish collection of php files? Does the performance improve or not? does a fast-cgi based installation make a difference? Are stat calls for included files short-circuited since it is all really one file? Does this improve things in windows where file calls seem so damn slow? Linux? Most important, how does it work with APC? thank you for any answers or references to points of study on the web. -s

Marcus Börger

19 years ago
Hello steve, why don't you give it a try: http://de.php.net/phar http://pecl.php.net/package/phar marcus Monday, May 7, 2007, 4:55:10 AM, you wrote:
> Before reading the thread on the idea of a PHP 5.3 branch, I had never > heard of phar, so please excuse my neophyte questions, but I couldn't > find a reference with the information. On a single website application > environment (as opposed to a shared host type of thing), what are the > performance characteristics of using a phar file to replace a largish > collection of php files?
> Does the performance improve or not? does a fast-cgi based > installation make a difference?
> Are stat calls for included files short-circuited since it is all > really one file? Does this improve things in windows where file calls > seem so damn slow? Linux?
> Most important, how does it work with APC?
> thank you for any answers or references to points of study on the web.
> -s
Best regards, Marcus