Crates.io | arcstring |
lib.rs | arcstring |
version | 0.1.3 |
source | src |
created_at | 2024-08-24 07:26:25.055664 |
updated_at | 2024-08-25 07:24:44.342928 |
description | Atomically reference-counted thin string type with SSO |
homepage | |
repository | |
max_upload_size | |
id | 1349913 |
size | 22,592 |
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