• 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
NSFileWrapper serializedRepresentation bloat?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileWrapper serializedRepresentation bloat?


  • Subject: NSFileWrapper serializedRepresentation bloat?
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 8 Jan 2011 17:16:03 -0800

I create an NSFileWrapper for a directory hierarchy like this (all items are directories, no files):

test-dir/
test-dir/inner-dir-a
test-dir/inner-dir-b
test-dir/inner-dir-c

The wrapper's serialized representation weighs in at around an astounding 1mB (1,022,234 bytes)!

Seems that the overhead per folder is around 300kB. Can that be right?

Code:

NSURL* url = [NSURL fileURLWithPath:@"/User/foo/Desktop/test-dir"];
NSFileWrapper w = [[NSFileWrapper alloc] initWithURL:url options:0  error:nil];

NSData* data = [w serializedRepresentation];

NSLog(@"%d", [data length]);


_murat

_______________________________________________

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: NSFileWrapper serializedRepresentation bloat?
      • From: Ken Ferry <email@hidden>
  • Prev by Date: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Next by Date: Re: NSFileWrapper serializedRepresentation bloat?
  • Previous by thread: Sync services, core data and entity inheritance
  • Next by thread: Re: NSFileWrapper serializedRepresentation bloat?
  • Index(es):
    • Date
    • Thread