I am trying to open thousands of files with
Data.ByteString.Lazy.readFile
from which I am seeing openFile: invalid argument (Invalid argument)
for many files
and decompress them with
Codec.Compression.GZip.decompress
from which I end up with *** Exception: Codec.Compression.Zlib: premature end of compressed data stream
.
I suspect both are caused by performance issues. Can someone give me some performance tips to hopefully help me overcome these issues? Or perhaps there are relevent blog posts out there already?
Thanks!
**FYI, I never actually see resource useage increase on my laptop - which is odd…