Performance enhancement when using multiple controllers?


#1

Hello there.

I am programming a small app and right now all functions are stored in a single controller.
It is not particularly big but also not particularly small (~400 lines).

I am experiencing performance issues (lag after clicking) on real devices, when changing the state of the app (app has 2 states). All other functions perform very well (opening modals, side menu, action sheets).

Do you guys think that a split of my controller into multiple smaller ones will bring a performance boost?


#2

It’s always best to separate your controllers, this way you’re not polluting your scope.

Take a look at this.
http://www.artandlogic.com/blog/2013/05/ive-been-doing-it-wrong-part-1-of-3/