I have a series of function libraries that I have set to autoload in the CodeIgniter framework. Would auto-loading (i.e. including) many libraries increase the processing time of each page, and would such delay be significant?
I know it can be dependant upon many other factors, but in general, is there such a thing as loading too many libraries?
Yes,
depending on the order in which the autoloaders have been registered, a classname might be passed trough multiple autoloaders, which might use a
file_exists,strposorpreg_matchto see if the classname matches their library.Having to load 100+ classes a request, this can become a costly thing.