Igal Koshevoy wrote:
> Joel VanderWerf wrote:
>> Igal Koshevoy wrote:
>>> 1. PStore standard library: Put your objects into a magical hash, 
>>> that's automatically persisted to a file. Probably the quickest and 
>>> easiest solution. See 
>>> http://www.ruby-doc.org/stdlib/libdoc/pstore/rdoc/classes/PStore.html
>>
>> PStore writes the whole file at once, not incrementally. Not really 
>> what OP is looking for, IMO.
> It takes ~2s for my machine to read or write the 50MB PStore file. This 
> isn't a big deal if the original poster (OP) doesn't mind keeping the 
> program running to process multiple sequences at once.

I got the impression that Mr. O. P.  was trying to avoid waiting until 
the end of the download to write the file (maybe in case the network 
went down halfway through).

>>> 3. Marshal core class: Dump objects to and from strings, and then 
>>> files. Useful if you need something more than PStore, but still want 
>>> to persist objects directly. See 
>>> http://ruby-doc.org/core/classes/Marshal.html
>>
>> PStore uses Marshal, so it's odd to say that Marshal is more than PStore.
> Working directly with Marshall allows greater flexiblity than using the 
> PStore wrapper, for example, if they decided to write a filesystem 
> database class. :)

Less is more ;)

-- 
       vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407