Re:How we made Haskell search strings as fast as Rust
by whateveracct on Thursday March 14, 2019 @03:07AM
(#19387066)
Hmm ByteString has the opposite issue and solved it with ShortByteString. Seems like PinnedText could be the analogue.
Presumably creating lots of small strings is a typical use case for Text so losing compacting gc hurts. ByteString on the other hand is more used with binary data and is designed for ffi use.