Hi,
I'm developing a non-web-based interface to OpenCA, but I'm having some
speed problems. I've rewritten basic_csr so it jump directly to the
client-confirmed-form operation. I also rewrote issueCertificate. Calling
these two in succession takes 39-40 seconds (!), which I find a bit too
long, even on a 300 MHz with 64 MB RAM.
Looking into the code, I find the (biggest) culprit (int basic_csr):
my $req_elements = $db->elements (DATATYPE => "REQUEST");
This takes 29 seconds.
So, I look in DB.pm and the elements sub. The culprit here is:
my @list = $self->searchItems (DATATYPE => $dataType);
This takes 29 seconds, so I look into the searchItems sub. Here the repeated
call of this line is the culprit:
push (@retList,
$self->listItems(DATATYPE=>$dataType, PARSE_MODE => $parse_mode));
The first time it is called, it takes 10 seconds. The second, 19 seconds.
The third and fourth time it takes 0 seconds.
I'm using the database which is installed when I install OpenCA. Is there
any reason why this push command should take SO long? What can I do to make
it do whatever it is doing quicker?
Best regards,
Christian Rygg
-------------------------------------------------------
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