[nycphp-talk] file include performance
cahoyos at us.ibm.com
Thu Apr 3 16:24:24 EST 2003
It really depends on your traffic and load if you can afford it or not.
For some web tools (low traffic), I've included all classes in a file
header to make maintenance easier, as well as code completeness.
This choice, of course, after having profiled my code and realized that
initialization took around 10% of execution time (acceptable for this tool)
(this 10% was after using code cache, it was around 20% before).
<davevgl at yahoo.co To: NYPHP Talk <talk at nyphp.org>
Subject: [nycphp-talk] file include performance
Please respond to
Just wondering if anyone has a sense of how much of a performance hit
you incur by including a file in php. Specifically I have a script
with two main branches. Does it make any sense to separate those out
into two different include files, or does the cost of getting a file
outweigh the cost of downloading both branches when only using one?
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk