NYCPHP Meetup

[nycphp-talk] file include performance

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


Carlos


                                                                                                                                       
                      David Vogel                                                                                                      
                      <davevgl at yahoo.co        To:       NYPHP Talk <talk at nyphp.org>                                                   
                      m>                       cc:                                                                                     
                                               Subject:  [nycphp-talk] file include performance                                         
                      04/03/2003 02:19                                                                                                 
                      PM                                                                                                               
                      Please respond to                                                                                                
                      talk                                                                                                             
                                                                                                                                       
                                                                                                                                       



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?

thanks,
David

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com


--- Unsubscribe at http://nyphp.org/list/ ---








More information about the talk mailing list