• 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
NSDocument save incremental file package in-place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDocument save incremental file package in-place


  • Subject: NSDocument save incremental file package in-place
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 01 Mar 2014 07:23:15 -0800
  • Thread-topic: NSDocument save incremental file package in-place

I have a Document whose file type is a package and potentially contains a
few thousand files. My test case is about 7500 files (mostly images).

I am using

-(NSFileWrapper *)fileWrapperOfType:(NSString *)typeName error:(NSError
**)outError


The problem is that when there is a very small change (just adding or
removing one of the files in the package), the system does not save in
place.

Rather it reads the previous package file completely, writes out a copy of
the package (400 MB) and then renames it.

How can I get it to save in place?

Right now my save operation takes 40 seconds when it could take less than a
second.

Thanks,

Trygve






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSDocument save incremental file package in-place
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: NSPredicate speed improvement?
  • Next by Date: Re: NSPredicate speed improvement?
  • Previous by thread: Re: NSPredicate speed improvement?
  • Next by thread: Re: NSDocument save incremental file package in-place
  • Index(es):
    • Date
    • Thread