Haskell Platform Proposal: add the 'text' library
bos at serpentine.com
Wed Sep 8 15:31:19 EDT 2010
On Wed, Sep 8, 2010 at 11:43 AM, Edward Kmett <ekmett at gmail.com> wrote:
> I want to like and use Data.Text, but I haven't been able to. Too many of
> the operations devolve to O(n) that could be O(1) if I had some way to slice
> based on cursors into the data type, and the current API locks me out of the
> internals, so I can't write those functions myself.
What kinds of functions are you thinking about? The Text type *is* the
cursor into the underlying array. What specific operations do you want to
perform that you'd prefer to be O(1)?
But really the last nail in the coffin for me, is that often I want to be
> able to just mmap data in from disk and use it, and rarely is my data on
> disk stored in UTF-16.
Yep, the text library just isn't intended for that right now.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries