Persistent objects

Paul Rubin http
Sun Dec 12 06:54:56 EST 2004


Max M <maxm at mxm.dk> writes:
> > Basically I wish there was a way to have persistent in-memory objects
> > in a Python app, maybe a multi-process one.  So you could have a
> > persistent dictionary d, and if you say    d[x] = Frob(foo=9, bar=23)
> > that creates a Frob instance and stores it in d[x].  Then if you
> > exit the app and restart it later, there'd be a way to bring d back
> > into the process and have that Frob instance be there.
> 
> Have you considdered using the standalone ZODB from Zope?

No.  I've heard that it's quite slow, and works sort of the way shelve
does.  Am I mistaken?  I want the objects to never leave memory except
through mmap.



More information about the Python-list mailing list