dicts,instances,containers, slotted instances, et cetera.

ocschwar at gmail.com ocschwar at gmail.com
Thu Jan 29 00:20:41 CET 2009

On Jan 28, 4:50 pm, Aaron Brady <castiro... at gmail.com> wrote:
> On Jan 28, 2:38 pm, ocsch... at gmail.com wrote:
> Hello, quoting myself from another thread today:
> There is the 'shelve' module.  You could create a shelf that tells you
> the filename of the 5 other ones.  A million keys should be no
> problem, I guess.  (It's standard library.)  All your keys have to be
> strings, though, and all your values have to be pickleable.  If that's
> a problem, yes you will need ZODB or Django (I understand), or another
> relational DB.
> There is currently no way to store live objects.

The problem is NOT archiving these objects. That works fine.

It's the computations I'm using these thigns for that are slow, and
that failed to speed up using __slots__.

What I need is something that will speed up getattr() or its
equivalent, and to a lesser degree setattr() or its equivalent.

More information about the Python-list mailing list