arcstring 1.0.0

Atomically reference-counted thin string type with SSO
Documentation
  • Coverage
  • 0%
    0 out of 16 items documented0 out of 13 items with examples
  • Size
  • Source code size: 35.01 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.93 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • malucard

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.