[Haskell-cafe] Need help - my haskell code is over 50 times slower than equivalent perl implementation

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Tue Jun 24 16:32:14 UTC 2014


On Tue, Jun 24, 2014 at 09:55:21PM +0530, C K Kashyap wrote:
> I used unsafeInterleaveIO after I ran into "too many open file handles"
> error.
> Again, I doubt about String since even if I change the number of files to
> 12000 - the perl program finishes in less than a second.

This pull request switching to ByteString brings performance in line with
the Perl on my system:

    https://github.com/ckkashyap/haskell-perf-repro/pull/1

Tom


More information about the Haskell-Cafe mailing list