What is the best use of include statement?
When include a file from disk, the disk/file access time can be 10ms, while the datatransfers from file into memory can be > 500MB/sec. Is a function in an include file always parsed and compiled, or only when that function is used somewhere in the remainder of the code? If the latter is the case I will put all 20? functions in one big include, and will reduce include time from 20 x 10ms= 0.2 sec. to 0.01! sec per page request. Well, these are my thoughts about it now, while I don't really know what to think about it. Can somebody put me on the right track here?
When include a file from disk, the disk/file access time can be 10ms, while the datatransfers from file into memory can be > 500MB/sec. Is a function in an include file always parsed and compiled, or only when that function is used somewhere in the remainder of the code? If the latter is the case I will put all 20? functions in one big include, and will reduce include time from 20 x 10ms= 0.2 sec. to 0.01! sec per page request. Well, these are my thoughts about it now, while I don't really know what to think about it. Can somebody put me on the right track here?