[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:25:21 UTC 2014
I used unsafeInterleaveIO after I ran into "too many open file handles"
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.
On Tue, Jun 24, 2014 at 9:49 PM, Bryan O'Sullivan <bos at serpentine.com>
> On Tue, Jun 24, 2014 at 9:08 AM, C K Kashyap <ckkashyap at gmail.com> wrote:
>> Essentially I am trying to open a number of files and printing out their
>> sized by reading them in and computing it's length.
> Don't use String, and don't use unsafeInterleaveIO unless you know what
> you're doing.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe