40 Tips for optimizing your php Code - Really?
View Single Post
12-14-2007, 08:42 PM
Join Date: Dec 2007
Originally Posted by
I think you're spot on with that, Gilzow. Although I don't imagine it adds much overhead at all - probably a few milliseconds in it, I would assume, without profiling it.
agreed. I'm betting that the difference between the two is minuscule, at least in most situations. I bet you begin to see a bigger difference in situations where you have a LOT of required/included files.
Funny you mention the profiling, cuz that's just what I did. I had one file that required 5 files, and a second that did a require_once for each of the 5 files. The require_once file took 44.3 milliseconds longer than the require version.
View Public Profile
Send a private message to gilzow
Find More Posts by gilzow