Welcome Guest, Not a member yet? Register   Sign In
Performance regarding autoloading
#1

[eluser]ZeroNine[/eluser]
Hello,

I have a noob question.

Are there any performance differences with setting up multiple auto loading model files vs consolidating all the methods into one model file and loading just that one model?
#2

[eluser]vbsaltydog[/eluser]
User guide:

http://ellislab.com/codeigniter/user-gui...iling.html

Look at benchmark points.
#3

[eluser]Kamarg[/eluser]
Benchmark it for yourself as vbsaltydog said but in general the answer is going to be no. You're going to have to be loading a huge number of files or a one incredibly large file for it to have any impact on your performance.
#4

[eluser]Aken[/eluser]
I prefer to only autoload resources that will be used on every single request (or at least a very significant portion of them). Usually the only ones I autoload are the database and session libs, and helpers.

Eric Barnes has some insight in performance in this blog post.




Theme © iAndrew 2016 - Forum software by © MyBB