[Haskell-beginners] histogram over large data

Stephen Tetley stephen.tetley at gmail.com
Tue Jun 5 22:06:00 CEST 2012


On 5 June 2012 19:41, Radosław Szymczyszyn <lavrin at gmail.com> wrote:

>
> 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.



More information about the Beginners mailing list