[cgiapp] How to lazy-load runmodes

gvim gvimrc at gmail.com
Mon May 23 23:15:01 EDT 2011


If I have a collection of, say, 15 fairly lengthy Perl scripts and I convert them into a CGI::Application app with 15 runmodes isn't there a huge startup penalty since my app must now load the code for all 15 runmodes prior to dispatch? Is there a way to lazy-load my runmodes? Although I have each one contained in a separate module I still have to 'use' all of them at once when the app starts.

gvim


More information about the cgiapp mailing list