vendredi 4 juillet 2014

Haskell log processing running slow


Vote count:

0




I've re-written a Python program in Haskell, when still learning the language (Haskell), that does some simple log processing.


Now, I've timed the Python version and it performs significantly better than the Haskell version. (Python: 0.78s vs Haskell: >> 200s, 2.5GHz i5).


Since I'm still beginning with Haskell programming, I'm not too sure what parts of the program are running slow, and how they can be improved and made more idomatic. Hopefully to match Python's performance.


I've included the Haskell program and some sample data in a gist.


I'd be grateful for any advice, as to how to improve its performance!



asked 27 secs ago






Aucun commentaire:

Enregistrer un commentaire