shelve slow in python 2.3.3 for windows

kramb64 at hotmail.com kramb64 at hotmail.com
Wed Jan 21 16:11:00 EST 2004


I already submitted a bug, but I'm curious to know if anybody ran into
this.
Try this program on Windows with python 2.3.3 and with python 2.2:

import shelve 
a=shelve.open("a", "c") 
for x in xrange(10000): 
	a[str(x)]=x 
	print str(x) + "\r", 
a.close() 

After about 7000/8000 insertions, the program gets so slow...
With python 2.2 it ends in a blink!
Really strange, isn't it?

Ciao.
Marco.



More information about the Python-list mailing list