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

2009-01-29 Thread James Stroud
ocsch...@gmail.com wrote: I can't port the entire app to be a stored database procedure. Perhaps I underestimate what you mean by this, but you may want to look at pyTables (http://www.pytables.org/moin/HowToUse). ctypes, maybe. I just find it odd that there's no quick answer on the fastest

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

2009-01-28 Thread Michele Simionato
On Jan 29, 12:23 am, ocsch...@gmail.com wrote: > I just find it odd that there's no quick answer on the > fastest way in Python to implement a mapping in this context. A Python dict is as fast as you can get. If that is not enough, your only choice is to try something at the C level, which may gi

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

2009-01-28 Thread Steven D'Aprano
On Wed, 28 Jan 2009 15:20:41 -0800, ocschwar wrote: > On Jan 28, 4:50 pm, Aaron Brady wrote: >> On Jan 28, 2:38 pm, ocsch...@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

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

2009-01-28 Thread Diez B. Roggisch
ocsch...@gmail.com schrieb: On Jan 28, 4:50 pm, Aaron Brady wrote: On Jan 28, 2:38 pm, ocsch...@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

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

2009-01-28 Thread ocschwar
On Jan 28, 5:21 pm, "Diez B. Roggisch" wrote: > ocsch...@gmail.com schrieb: > > > > > Hi, all. > > > I have an application that that creates, manipulates, and finally > > archives on disk 10^6 instances of an object that in CS/DB terms is > > best described as a relation. > > > It has 8 members, a

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

2009-01-28 Thread ocschwar
On Jan 28, 4:50 pm, Aaron Brady wrote: > On Jan 28, 2:38 pm, ocsch...@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

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

2009-01-28 Thread Diez B. Roggisch
ocsch...@gmail.com schrieb: Hi, all. I have an application that that creates, manipulates, and finally archives on disk 10^6 instances of an object that in CS/DB terms is best described as a relation. It has 8 members, all of them common Python datatypes. 6 of these are set once and then not mo

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

2009-01-28 Thread Aaron Brady
On Jan 28, 2:38 pm, ocsch...@gmail.com wrote: > Hi, all. > > I have an application that that creates, manipulates, and finally > archives on disk 10^6 instances of an object that in CS/DB terms is > best described as a relation. > > It has 8 members, all of them common Python datatypes. 6 of these

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

2009-01-28 Thread ocschwar
Hi, all. I have an application that that creates, manipulates, and finally archives on disk 10^6 instances of an object that in CS/DB terms is best described as a relation. It has 8 members, all of them common Python datatypes. 6 of these are set once and then not modified. 2 are modified around