Re: Slow performance of PDFDocument dataRepresentation method
Re: Slow performance of PDFDocument dataRepresentation method
- Subject: Re: Slow performance of PDFDocument dataRepresentation method
- From: Antonio Nunes <email@hidden>
- Date: Tue, 25 Apr 2006 15:45:35 +0100
On 25 Apr 2006, at 13:51, Theodore H. Smith wrote:
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.
Thanks Theodore,
I'll have a play with Shark when I get it to work. The CHUD download
I managed from the Apple Developer site doesn't install a happy
Shark. (Missing kext).
- 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