[Haskell-cafe] Sneaking haskell in the workplace -- cleaning csv files

Thomas Schilling nominolo at googlemail.com
Fri Jun 15 15:33:07 EDT 2007


On 15 jun 2007, at 21.14, Jim Burton wrote:

> Thomas Schilling wrote:
>> On 15 jun 2007, at 18.13, Jim Burton wrote:
>>> import qualified Data.ByteString.Char8 as B
>>>
>> Have you tried
>> import qualified Data.ByteString.Lazy.Char8 as B
>> ?
>>
>
> No -- I'll give it a try and compare them. Is laziness preferable  
> here?

yes, since you were talking of big files.  if you don't have to keep  
the data around lazy bytestrings will keep the memory footprint low.



More information about the Haskell-Cafe mailing list