• 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
Splitting model I/O for optimization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Splitting model I/O for optimization


  • Subject: Splitting model I/O for optimization
  • From: "Oleg Krupnov" <email@hidden>
  • Date: Sat, 1 Nov 2008 10:31:49 +0200

In my app all model data are saved in a single file. For the purpose
of optimizing file I/O, I'm looking for a solution that would not
force me to resave the entire model when only a tiny bit of it has
changed, and also allow loading (fetching) the model only partially -
lazily upon request.

A solution for this problem could be saving different parts of the
model in different archive files using
NSKeyedArchiver/NSKeyedUnarchiver. However, this only works when there
are no cross-references between the parts of the model that need to be
saved. AFAIU, upon loading, any saved cross-reference would create a
new copy of the object that would not map to the same model object. Is
there a work around this problem?

Another solution that seems feasible is a kind of file mapping into
memory, i.e. there is a single large file but accessed randomly like
memory. However, I am not sure there is such thing in Cocoa and also
if it really gives any performance gain.

I'd appreciate any ideas.
_______________________________________________

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: Splitting model I/O for optimization
      • From: "Michael Ash" <email@hidden>
    • Re: Splitting model I/O for optimization
      • From: Jean-Daniel Dupas <email@hidden>
  • Next by Date: Saving window to a PDF File
  • Next by thread: Re: Splitting model I/O for optimization
  • Index(es):
    • Date
    • Thread