On 07/19/2010 07:16 AM, Dietrich Streifert wrote: > As the method implies a new instance of my cgiapp is created for every > request. With speedy_cgi I used to only create a cgiapp instance once > and reuse it on request. I consider my cgiapp to be a big one and it > would benefit a lot from being instantiated once and the instance > reused often.
Are you sure? Have you benchmarked it? It doesn't matter how much code is in your application or how many modules you are pulling in since that's a one time compilation hit at startup. The only thing I can think of one reason to not want to call new() on every request and that is if you are doing something intensive at init or setup time. -- Michael Peters Plus Three, LP ##### CGI::Application community mailing list ################ ## ## ## To unsubscribe, or change your message delivery options, ## ## visit: http://www.erlbaum.net/mailman/listinfo/cgiapp ## ## ## ## Web archive: http://www.erlbaum.net/pipermail/cgiapp/ ## ## Wiki: http://cgiapp.erlbaum.net/ ## ## ## ################################################################
