[Haskell-cafe] implementing a text editor swap file

Erik de Castro Lopo mle+hs at mega-nerd.com
Wed Jan 18 03:24:54 CET 2012


Martin DeMello wrote:

> Further question - my internal data representation is a vector of
> strings (it's a line-based editor).

String or ByteString or Text?

If its either of the first two, I think you should definitely look at
Text.

> Is there a more efficient strategy
> to keep an mmap buffer in sync with the vector than simply allocating
> some large fixed size per line?

Very much dependent on whether you are using String or one of the
other two I would think.

Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Haskell-Cafe mailing list