Swiftpack.co - kelvin13/swift-highlight as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by kelvin13.
kelvin13/swift-highlight v0.1.1
memory-efficient storage representations for text highlighters
⭐️ 3
🕓 4 days ago
.package(url: "https://github.com/kelvin13/swift-highlight.git", from: "v0.1.1")


swift-highlight is a pure-Swift data structure library designed for server applications that need to store a lot of styled text. The Notebook module is memory-efficient and uses slab allocations and small-string optimizations to pack large amounts of styled text into a small amount of memory, while still supporting efficient traversal through the Sequence protocol.

Importing this module will expose the following top-level symbol(s):

  • struct NotebookStorage

  • struct NotebookContent<Highlight>

  • struct Notebook<Highlight, Link>


Stars: 3
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics