Re: Oddity with large dictionary (several million entries)

2010-04-27 Thread Lothar Werzinger
Peter Otten wrote: > Lothar Werzinger wrote: >> Can anyone explain this oddity? Any insight is highly appreciated. > > When you are creating objects like there is no tomorrow Python's cyclic > garbage collections often takes a significant amount of time. The first >

Oddity with large dictionary (several million entries)

2010-04-27 Thread Lothar Werzinger
Hi, I am trying to load files into a dictionary for analysis. the size of the dictionary will grow quite large (several million entries) and as inserting into a dictionary is roughly O(n) I figured if I loaded each file into it's own dictionary it would speed things up. However it did not. So