Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tayloraswift/swift-highlight
memory-efficient attributed text storage for server applications
https://github.com/tayloraswift/swift-highlight
attributed-text server-side-swift swift
Last synced: 16 days ago
JSON representation
memory-efficient attributed text storage for server applications
- Host: GitHub
- URL: https://github.com/tayloraswift/swift-highlight
- Owner: tayloraswift
- License: apache-2.0
- Created: 2022-03-07T21:30:28.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-17T01:16:18.000Z (over 2 years ago)
- Last Synced: 2024-10-11T18:16:16.204Z (about 1 month ago)
- Topics: attributed-text, server-side-swift, swift
- Language: Swift
- Homepage:
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
***`highlight`***
`0.1.4``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`](https://swiftinit.org/reference/swift/sequence) protocol.
**Importing this module will expose the following top-level symbol(s)**:
* `struct NotebookStorage`
* `struct NotebookContent`
* `struct Notebook`