Re: how to build a dict including a large number of data

2008-01-04 Thread wanzathe
On 1月4日, 下午10时17分, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > wanzathe wrote: > > i have a binary file named test.dat including 960 records. > > the record format is int a + int b + int c + int d > > i want to build a dict like this: key=int a,int b values=int c,int d > > i choose using bsddb

Re: how to build a dict including a large number of data

2008-01-04 Thread Fredrik Lundh
wanzathe wrote: > i have a binary file named test.dat including 960 records. > the record format is int a + int b + int c + int d > i want to build a dict like this: key=int a,int b values=int c,int d > i choose using bsddb and it takes about 140 seconds to build the dict. you're not buildin

Re: how to build a dict including a large number of data

2008-01-04 Thread Chris
On Jan 4, 3:57 pm, wanzathe <[EMAIL PROTECTED]> wrote: > hi everyone > i'm a newbie to python :) > i have a binary file named test.dat including 960 records. > the record format is int a + int b + int c + int d > i want to build a dict like this: key=int a,int b values=int c,int d > i choose u