include_once / require_once Wrapper Class optimized

February 18th, 2006  |  Published in Uncategorized

include_once / require_once Wrapper Class optimized:

When I posted my Idea of building a wrapper class for include_once and require_once, I didn’t think, that the many php developer would like it. But I was wrong, fortunately.

Thanks to Mathias Taylor for benchmarking. Special thanks goes to Cristian Strian for his suggestion to optimize the class, and make it faster. That is the optimized wrapper class.

This is interesting and I think if you do a lot of includes (like in a framework) there might be benefits to looking into ways to speed up include methods in your code.

(Via Pure PHP - PHP unconventional.)

Leave a Response