2 ms·
I have no idea about the popularity, but something like https://github.com/Chris00/ocaml-rope https://github.com/Chris00/ocaml-rope ?
by lmm 11y ago
I have no idea about the popularity, but something like https://github.com/Chris00/ocaml-rope https://github.com/Chris00/ocaml-rope ?
- danieldk 11y agoSorry, I meant specifically: A good one can detect that only a range of allocation is alive and release unused part of someLargeString. I do agree that ropes are nice, though they may not be acceptable if you want O(1) indexing or slicing.
- lmm 11y agoIf you're using a rope representation in a GCed language then you get that for free, no?