[nycphp-talk] file include performance

Carlos Hoyos cahoyos at
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).


                      David Vogel                                                                                                      
                      <davevgl at        To:       NYPHP Talk <talk at>                                                   
                      m>                       cc:                                                                                     
                                               Subject:  [nycphp-talk] file include performance                                         
                      04/03/2003 02:19                                                                                                 
                      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 ---

More information about the talk mailing list