Swift's `AttributedString` uses this: https://github.com/apple/swift-collections/tree/main/Sources/RopeModule Could be a more efficient `InMemoryBuffer` that's also `Sendable`.
Swift's
AttributedStringuses this:https://github.com/apple/swift-collections/tree/main/Sources/RopeModule
Could be a more efficient
InMemoryBufferthat's alsoSendable.