Re: Slow performance of PDFDocument dataRepresentation method
Re: Slow performance of PDFDocument dataRepresentation method
- Subject: Re: Slow performance of PDFDocument dataRepresentation method
- From: "Theodore H. Smith" <email@hidden>
- Date: Tue, 25 Apr 2006 13:48:58 +0100
On 25 Apr 2006, at 13:36, Antonio Nunes wrote:
Hi,
Requesting a data representation of a PDF document seems to take
exponentially longer as PDFDocument file sizes get larger.
Sounds to me like a classic programmer error. The code you are
calling, probably copies it's buffer everytime it wants to add some
data. This is where the square of the size of the document comes in
to the time required. It's usually solved by using a buffered
approach so that copying doesn't need to be done everytime.
Calling
pdfDocData = [[self objectInPdfDocumentsAtIndex:i]
dataRepresentation];
on smaller documents is relatively ok. But calling it on larger
documents can take an inordinate amount of time. E.g. This call on
the Adobe PDFReference16 pdf document (8.7 MB) takes well over five
minutes to return.
Is there a good reason for this, and/or is there anything I can do
to speed it up?
Thanks,
António _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
http://elfdata.com/plugin/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden