[eluser]nyxynyx[/eluser]
Hi, I'm wondering when I should autoload libraries and when should I load it in the controller when required? If I use a particular library on 50% of the pages viewed daily, should I autoload it? Is there a significant performance impact of autoloading libraries? Sorry I'm new to this
[eluser]LinkFox[/eluser]
If you're using it all over your application then autoload it, I.E Session, however things like form_validation would only really be used on pages with forms so should be loaded when you need it.
I'd say only autoload if 60-70% of your controllers require the library/helper etc, but its a personal preference and its best to learn by tweaking really.