• 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
Object allocation question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Object allocation question


  • Subject: Object allocation question
  • From: "Michael Latta" <email@hidden>
  • Date: Sun, 29 Oct 2006 20:50:29 -0800

Say I want to load a large number of objects from persistent store.  Would
it be possible and legal to map a file into memory that already had a large
number of objects laid out properly, and just patch the pointers that are
references between an in-memory value and a persistent value?  I know some
object databases do this (and may have patents that affect this).  But,
would it work in Obj-C?  Or must each object individually go through
alloc/init to function properly?  One thing I like about the Smalltalk
derivatives is that you can start up a system with thousands or even
millions of objects in under 2 seconds because you can just map the image
into memory and go.  All object references are image relative addressing and
no magic values need to be setup that reference code or things outside the
image.



Michael





 _______________________________________________
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: Object allocation question
      • From: Scott Stevenson <email@hidden>
  • Prev by Date: swizzling a class to a subclass inorder to add ivars (& methods) to a class
  • Next by Date: Re: Using NSUserDefaultsController with an NSPopUp button
  • Previous by thread: Re: swizzling a class to a subclass inorder to add ivars (& methods) to a class
  • Next by thread: Re: Object allocation question
  • Index(es):
    • Date
    • Thread