Michael can we move the "use" statements to the cmds and make them use only the objects that are need it for the particular cmd. As of now we read and initialize all the modules upfront weather we need them or not to do a particular task. Also both DBI and Crypto objects should be cached . I think this will indeed improve the performance.
another thing when I look at the code I see that we are creating multiple instances of the same object for example in RAServer we have these statements $config = new OpenCA::Configuration $dbconfig = new OpenCA::Configuration $dbiconfig = new OpenCA::Configuration and those are very file IO intensive. They are ran every time a cgi is executed. best regards > -----Original Message----- > From: Michael Bell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 9:16 AM > To: openca-dev > Subject: [OpenCA-Devel] Performance > > > Hi all, > > I am starting analyzing the performance of OpenCA because we have > definitely a problem. The result is the following: > > 0.7 - 0.75 seconds until we start with the access control > 0.65 - 0.8 seconds access control > 0.06 - 0.07 seconds for the menugeneration > 0.04 - 0.07 seconds for the output > > The computer is my notebook > > - 256MB RAM, PIII 850 > - OpenLDAP > - MySQL > - Apache > - KDE 3 (uses my RAM :) ) > - Mozilla 1.3.1 > > So there are two things which must be optimized first - the access > control and the initialization. If we use mod_perl then the > initialization should be much faster. Looks like the main > problem is the > access control. > -- > ------------------------------------------------------------------- > Michael Bell Email: [EMAIL PROTECTED] > ZE Computer- und Medienservice Tel.: +49 (0)30-2093 2482 > (Computing Centre) Fax: +49 (0)30-2093 2704 > Humboldt-University of Berlin > Unter den Linden 6 > 10099 Berlin Email (private): [EMAIL PROTECTED] > Germany http://www.openca.org > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > OpenCA-Devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/openca-devel > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ OpenCA-Devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/openca-devel