Yuvi
Yuvi

Reputation: 4637

Autoloading all models in CodeIgniter

Are there any disadvantages to just putting all models in $autoload['model'] instead of loading them only as necessary?

Upvotes: 1

Views: 2076

Answers (1)

birderic
birderic

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

Related Questions