← All repos

ecow

Compact, clone-on-write vector and string.

Browse cluster: Font design, tooling, and parsing
97commits
21contributors
1languages

Tech stack & purpose

ecow is a Rust library providing compact, clone-on-write data structures for vectors and strings. It offers `EcoVec`, a reference-counted clone-on-write vector that occupies just two words of memory, and `EcoString`, a reference-counted clone-on-write string with 15 bytes of inline storage that spans 16 bytes total. These types are designed to be memory-efficient and cheap to clone compared to standard Rust `Vec` and `String` types, with the tradeoff of some overhead during mutation. The project is dual-licensed under MIT and Apache 2.0.

Languages

Rust
100.0%

Contributors