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

how to build a dict including a large number of data

2008-01-04 Thread wanzathe
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 using bsddb and it takes about 140 seconds to build the dict. what c