Reputation: 4637
Are there any disadvantages to just putting all models in $autoload['model']
instead of loading them only as necessary?
Upvotes: 1
Views: 2076
Reputation: 3765
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?
Upvotes: 2