
5 Jun
2012
5 Jun
'12
8:06 p.m.
On 5 June 2012 19:41, Radosław Szymczyszyn
Finally, what puzzles me the most, is that a roughly equivalent script in Python which just reads the same datafile into a standard dict performs in about 1/3 of the time of the faster one of the above two and Python's hardly a fast language... Bewildering, indeed.
Dicts are efficient in Python though (as they are efficiently implemented in C). Python often seems to beat Haskell in micro-benchmarks that just fill a dictionary then run a simple query / summation on it.