arcstring

Crates.ioarcstring
lib.rsarcstring
version0.1.3
sourcesrc
created_at2024-08-24 07:26:25.055664
updated_at2024-08-25 07:24:44.342928
descriptionAtomically reference-counted thin string type with SSO
homepage
repository
max_upload_size
id1349913
size22,592
malucart (malucard)

documentation

README

ArcString

This is a simple library that contains an atomically reference-counted string type that is only as big as one pointer, but is capable of SSO up to its size. So, when pointers are 64-bit, ArcString is 8 bytes large, and can store strings up to 8 bytes without a heap allocation, and when pointers are 32-bit, that is 4 bytes. It uses NonZeroUsize internally, meaning Option is also only as big as one pointer.

Commit count: 0

cargo fmt