• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Slow performance of PDFDocument dataRepresentation method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Slow performance of PDFDocument dataRepresentation method
      • From: "Theodore H. Smith" <email@hidden>
References: 
 >Slow performance of PDFDocument dataRepresentation method (From: Antonio Nunes <email@hidden>)

  • Prev by Date: Newbie questions
  • Next by Date: Re: Slow performance of PDFDocument dataRepresentation method
  • Previous by thread: Slow performance of PDFDocument dataRepresentation method
  • Next by thread: Re: Slow performance of PDFDocument dataRepresentation method
  • Index(es):
    • Date
    • Thread