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:51:54 +0100
On 25 Apr 2006, at 13:48, Theodore H. Smith wrote:
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.
Oh, and if this were the problem, there isn't anything you can do
about it, except ask Apple to fix it.
Well, you could try using Shark? It's easy to use and fun and should
at least shed some light on the problem.
_______________________________________________
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