seq-str

Crates.ioseq-str
lib.rsseq-str
version0.1.4
created_at2025-09-09 21:07:58.175634+00
updated_at2025-09-09 22:42:06.989043+00
descriptionFlat collections of strings etc.
homepage
repositoryhttps://github.com/cbeck88/seq-str
max_upload_size
id1831634
size43,248
Chris Beck (cbeck88)

documentation

README

seq-str

Crates.io Crates.io License

seq-str provides alternatives to Vec<String> and Vec<Vec<u8>> which store all the data in contiguous memory. The types SeqStr and SeqBytes can often be drop-in replacements, for improved memory locality and fewer memory allocations.

These types also support "emplace"-like APIs such as in_place_writer, which allow writing the next element directly into the contiguous buffer.

SeqStr::from_display_iter allows you to collect any iterator of impl Display, where all formatting takes place directly in the contiguous buffer.

See also

  • flatcontainer with similar motivation but a more ambitious approach
Commit count: 10

cargo fmt