Re: Simple Namespace Proposal

From: Date: Sun, 08 Jul 2007 09:06:03 +0000
Subject: Re: Simple Namespace Proposal
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-30614@lists.php.net to get a copy of this message
OOP-PHP applications are usually one class per file with conditional loading. This does not play well with caching. I am working on gluing
Why wouldn't it play well with caching?
(a phing task will do this) so it can be opcode cached as one large application binary. I will then compare the performance of both apporaches, but I have a feeling that the "single binary" approach will be faster. As APC will be part of PHP6, I think this approach could
I don't think "one binary" approach makes sense for PHP. PHP application is usually composed of many files, some of them are library files not used at all, some are rarely used, etc. Also, this approach does not allow to change individual files without having all the system lose performance significantly. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com

« previous php.internals (#30614) next »