Hi all,

you might have noticed that the new CSR generation is pretty slow.
Martin and I profiled the OpenXPKI server today (we'll add some
patches to support a non-forking server to better support profiling
soon) using Devel::DProfLB (Devel::DProf, Devel::Profiler,
Devel::Profile, Devel::AutoProfile and Devel::SmallProf all had their
own share of problems :-/). Surprisingly enough, we found out that a
huge amount of time is spent in OpenXPKI::Exception->throw() - while
generating stack traces using Devel::StackTrace, which we don't even
use. I've generated a patch for Exception::Class to skip that and
submitted a bug report, which you can both find at 
http://rt.cpan.org/Ticket/Display.html?id=26489
This actually speeds the time to generate a request up from 50something
seconds to 8 seconds :-) Try it, it feels pretty snappy. The next
"culprit" on the list to optimize is (expectedly) get_xpath(), which
amounts for a lot of time, too. But I guess there are some pretty easy
ways to optimize it ...

Best regards,
    Alex
-- 
Dipl.-Math. Alexander Klink | IT-Security Engineer
        [EMAIL PROTECTED] | working @ urn:oid:1.3.6.1.4.1.11417

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
OpenXPKI-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openxpki-devel

Reply via email to