Are there any disadvantages to just putting all models in $autoload['model开发者_C百科']
instead of loading them only as necessary?
You might want to take a look at the CodeIgniter Profiler Class to see how your application performs auto-loading all models versus loading them only when needed. I'd recommend looking at execution time and memory usage.
Here is a similar question with some more suggestions for profiling your application. Codeigniter. Autoload models, will things get slower?
精彩评论