Welcome Guest, Not a member yet? Register   Sign In
Controller benchmarking
#11

[eluser]CtheB[/eluser]
I know but you can't rely on that when using libraries.
Do you autoload any libraries (you shouldn't). there are a lot of other possibilities why it is not reliable.
Give some more information what is executed and i can tell you more, or you have to benchmark
the controllers and libraries in a different way. good luck.
#12

[eluser]frist44[/eluser]
We do autoload some libraries, but it's because we actually use them in just about every call. Is there a reason not to?
#13

[eluser]CtheB[/eluser]
Yes just look through the forum and there are many people explaining why autoloading is not a good idea.

Autoload for codeigniter is not fast because it is php4 and it will slow down your application.
Also it is not good code practise since you are hiding things for the programmer.

http://en.wikipedia.org/wiki/Lazy_initialization is a better way to go.

But that's not the discussion over here.

Can you tell me wich libraries are you autoloading?
And wich libraries are you also using and do not autoload?

Are you using HMVC or/and ORM ?

Just give me some more information about the processes so we can see why your application is so slow.
#14

[eluser]frist44[/eluser]
We autoload log, session, customclass, database, winregistry, database_init, customclass2, customclass3, customclass4, validation, customclass5.

The custom classes obviously have different names. ..

If i load them in the constructor of the controller, should I see a difference?




Theme © iAndrew 2016 - Forum software by © MyBB