[Haskell-cafe] Need help - my haskell code is over 50 times slower than equivalent perl implementation
Nicolas Trangez
nicolas at incubaid.com
Tue Jun 24 17:10:43 UTC 2014
On Tue, 2014-06-24 at 12:08 -0500, Stuart A. Kurtz wrote:
> Might it be more efficient to bypass counting altogether, and just use the Haskell version of stat?
>
> getFileSize :: FilePath -> IO Int64
> getFileSize path = do
> stat <- getFileStatus path
> let COff fs = fileSize stat
> return fs
Obviously. I assumed the original author would do something else while
processing the file, not just count bytes...
Nicolas
More information about the Haskell-Cafe
mailing list