• 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: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


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

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