On Mon, Mar 10, 2008 at 4:33 PM, Dave Tapley <[EMAIL PROTECTED]> wrote:
>  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 [EMAIL PROTECTED] http://www.imperialviolet.org
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to