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

C K Kashyap ckkashyap at gmail.com
Tue Jun 24 16:37:32 UTC 2014


Indeed it works. Thank you so much Tom.
Sorry about the false alarm.

Regards,
Kashyap


On Tue, Jun 24, 2014 at 10:02 PM, Tom Ellis <
tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk> wrote:

> 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
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140624/b1760023/attachment.html>


More information about the Haskell-Cafe mailing list