* Fayland Lam <[EMAIL PROTECTED]> [2008-01-03 11:00]: > the first is to load all modules at beginning. I want to ask > why?
If you load the modules on demand, then each child will have its own duplicate copy of all demand-loaded modules, which adds up to much higher memory consumption across processes. If you load them up front, then the memory needed for the modules will be shared among processes via fork(). > the second one is hard to use model in cron pl. Did you use an existing Catalyst::Model::Foo? If so, use the Foo module itself instead of trying to load ::Model::Foo in your non- web code. If you wrote the model code yourself, and you did it all inside your Catalyst::Model subclass, well, that’s the wrong approach… Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/> _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
