
11 Mar
2008
11 Mar
'08
12:11 p.m.
On Mon, Mar 10, 2008 at 4:33 PM, Dave Tapley
Concerning this minimal example: http://hpaste.org/6268
Change the Data.ByteString.Char8 to Data.ByteString.Lazy.Char8, also the takeWhile, dropWhile pair is better expressed using span. With those two changes, and a 150MB test file, a compiled binary is using about 220MB of resident space. That seems pretty reasonable to me. As a purely subjective atheistic point: importing some modules qualified will help your sanity. Otherwise you have lots of common function names (readFile etc) and you have to try and figure out which module they are going to resolve into all the time! Cheers, AGL -- Adam Langley agl@imperialviolet.org http://www.imperialviolet.org