Is opening a new source file really costly? Was: [PEPr] Comment on RFC::Package naming, file naming and directory structure RFC

From: Date: Mon, 19 Apr 2004 21:13:36 +0000
Subject: Is opening a new source file really costly? Was: [PEPr] Comment on RFC::Package naming, file naming and directory structure RFC
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28085@lists.php.net to get a copy of this message
Pepr wrote:
It 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. Cheers, P.S. Sorry for veering a bit offtopic. Sérgio Carvalho

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.pear.dev (#28085) next »