• 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: Optimizing PDFKit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Optimizing PDFKit


  • Subject: Re: Optimizing PDFKit
  • From: Shaun Wexler <email@hidden>
  • Date: Wed, 5 Oct 2005 03:41:47 -0700

On Oct 5, 2005, at 2:59 AM, Shaun Wexler wrote:

For the same run of a test script, the PDFKit code is a full order of magnitude slower. I'm running 10.4.2 on a dual 2GHz G5 and am concerned about users with slower machines.

You're performing two stages of unnecessary+expensive data conversion!!!

Oops, deleted the end of that paragraph. I assume that PDFDocument maintains the original data privately, and it's not the conversion/ creation of underlying support classes that is the speed issue here (but that is suspect)... basically, it's much quicker to apply a symmetric block cypher to raw image data, and certainly more efficient (no parsing) and secure. Is there a reason you need images in PDF format internally, or is that just how you created/stored them? If you are going to go to need crypto anyway, I'd convert them to a more efficient image format first... your "image_crypt" tool would rip PDF->IMG->encryptedIMG, so it's transparent to the build process, and the app.
--
Shaun Wexler
MacFOH
http://www.macfoh.com



_______________________________________________ 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: Optimizing PDFKit
      • From: Ricky Sharp <email@hidden>
References: 
 >Optimizing PDFKit (From: Ricky Sharp <email@hidden>)
 >Re: Optimizing PDFKit (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Persistent Document Tutorial Trouble
  • Next by Date: NSURL custom protocols and CFURL
  • Previous by thread: Re: Optimizing PDFKit
  • Next by thread: Re: Optimizing PDFKit
  • Index(es):
    • Date
    • Thread