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

Stuart A. Kurtz stuart at cs.uchicago.edu
Tue Jun 24 17:08:46 UTC 2014


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

Peace,

Stu



More information about the Haskell-Cafe mailing list