Re: Is opening a new source file really costly? Was: [PEPr] Comment on RFC::Package naming, file naming and directory structure RFC
| From: | Lukas Smith | Date: | Mon, 19 Apr 2004 21:14:27 +0000 |
| Subject: | Re: Is opening a new source file really costly? Was: [PEPr] Comment on RFC::Package naming, file naming and directory structure RFC | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-28086@lists.php.net to get a copy of this message | ||
Sérgio Carvalho wrote:
Pepr wrote:it really is very expensive .. it varies based on the platform but its a significant amount of time .. using a bytecode cache with enough ram gets rid if the overhead however. regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07It seems like this proposal would require each class of a package to be in a separate file. The need to access additional files would reduce performance.I've seen this repeated over and over as if it were a fact. Is there any confirmed profiling showing that opening a new file is a 'heavy' operation for the Zend engine? I'm questioning because it strikes me as really strange. I'd expect the parse operation to be an order of magnitude more complex than requesting an new file handle from the underlying OS.