This queue is for tickets about the PDF-API2 CPAN distribution.

Report information
The Basics
Id:
28925
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
pwomack [...] papermule.co.uk
Cc:
AdminCc:

BugTracker
Severity:
Wishlist
Broken in:
0.62
Fixed in:
(no value)



Startup time is too long. Let me expand, because that sounds very critical. I am using PDF::API2 because it is mature and well supported. However, I am currently using it to extract simply meta information from PDF, notably bounding boxes and number of pages in a document. This run very nicely - thank you. But I have noticed (under -d:DPro) that in fact, the majority of the time is being spent in start up, and my actual request is dealt with VERY fast indeed. A brief reading of the code (guided by the profile) reveals that quite a lot of data is read from configuration files, ready for use when modifiying PDFs; since I don't (in fact) do that, this is not desirable. Would it be feasible to defer reading in this data until the user request an actual modification command? Alternatively (since I'm in a minority) would it be possible to have a "don't initialise data structures or import modules used for modification" option, with would be disabled by default?
do you have patches?
Subject: Re: [rt.cpan.org #28925]
Date: Mon, 03 Sep 2007 09:04:57 +0100
To: bug-PDF-API2@rt.cpan.org
From: paul womack <pwomack@papermule.co.uk>
Alfred Reibenschuh via RT wrote:
Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=28925 > > > do you have patches? >
Good grief, no! I'm (moderately) busy on other projects, and improving performance in an area where people aren't complaining has been pushed down my to do list. I also need to understand rather more of the code than I presently do before making such far reaching changes. I'm only using the read-side of the code, but I need to understand the write-side before altering the initialisation. BugBear
*wontfix*


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.