Object allocation question
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