[Haskell-beginners] how more efficient read/write a file ?
Kyle Murphy
orclev at gmail.com
Sat Sep 24 20:00:24 CEST 2011
It's not for the faint of heart, but the enumerator package is also supposed
to provide very good performance for stream transformations. I've looked at
it a bit myself but I'm still struggling to wrap my head around the types
involved, which like most things in Haskell is the key to understanding the
whole thing.
-R. Kyle Murphy
--
Curiosity was framed, Ignorance killed the cat.
On Sat, Sep 24, 2011 at 05:01, Benjamin Edwards <edwards.benj at gmail.com>wrote:
> You should look up bytestring and friends on hackage.
>
> If it is something quite simple you can use the lazy variants and provided
> that you don't try to hold onto the input you should get nice constant space
> without trying too hard.
>
> I recommend the early chapters on IO in real world haskell if you want more
> info on lazy IO.
> On 24 Sep 2011 03:06, "anyzhen" <jiangzhen3s at qq.com> wrote:
> > consider this :
> > i want load a 4G file(or some bigger file) ,and the process data
> operation just like 010 to 101( XOR bits ) , is it some efficient function
> down it ?
> > such hPutStr hPutChar is Char layer , is exist bit layer operations?
> >
> >
> > thanks for any help
> >
> >
> > jiangzhen3s at qq.com
>
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110924/917c28e3/attachment.htm>
More information about the Beginners
mailing list