[HOW DO I?] Objects to/from disk...

Ali Chamas alichamas at yahoo.com
Wed Dec 22 00:35:10 UTC 1999


Cheers Bert!

--- Bert Freudenberg <bert at isgnw.CS.Uni-Magdeburg.De>
wrote:
> There are at least three variants ...
> 
> 1.)	storeOn:/readFrom: - recursively stores source
> code that is
> 	compiled and evaluated on loading.
> 2.)	storeDataOn:/readDataFrom: - uses SmartRefStream
> for
> 	recursive binary storage.
> 3.)	ImageSegments - basically stores/loads parts of
> the object memory.
> 
> The is the simplest to understand, the second is
> faster and allows classes
> to be stored, the last one is the most advanced -
> it's so hot I didn't
> even try it yet ;-)

Sorry to persist the point ;|, but which one of these
techniques would best serve the task of archiving a
variable to disk. This variable could be anything from
an instance of Collection, to a custom class designed
to wrap around a group of objects. Imagine i had
created a global instance of Dictionary called
"Images" which i'm using to hold any imported images
within. If i wanted to archive this dictionary to
disk, then bring the variable back into a fresh image,
would it be best to use method 2)?

Merry Christmas + a groovy new years!
Ali.
__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com





More information about the Squeak-dev mailing list