Re: Re: Vote: PEAR::Strip_Comments
| From: | Adam Maccabee Trachtenberg | Date: | Thu, 29 Apr 2004 14:09:26 +0000 |
| Subject: | Re: Re: Vote: PEAR::Strip_Comments | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12224@lists.php.net to get a copy of this message | ||
On Thu, 29 Apr 2004, Thorsten Suckow-Homberg wrote:
> And btw.: There definitely is a diference in the speed:
>
> HUGE_FILE.php (5234 lines of comments without code to interpret)
> =================================================
> ["mean"]=> string(8) "0.037905"
> ["iterations"]=> int(100)
>
> SMALL_FILE.php (2631 lines of comments without code to interpret)
> =================================================
> ["mean"]=> string(8) "0.019446"
> ["iterations"]=> int(100)
This is somewhat misleading because your script isn't doing anything
other than reading in the file.
While there may be a 2/3rd improvement in include speed, this is a
much smaller percentage improvement when you consider the total time
of an "real" script that uses the package.
I don't know if it's worth munging files just to save this fractional
amount of time.
-adam
--
adam@trachtenberg.com
author of o'reilly's php cookbook
avoid the holiday rush, buy your copy today!