#string #heap #intro

semistr

Immutable string stored inline or on heap

1 unstable release

0.1.0 Feb 16, 2023

#40 in #intro

MIT/Apache

13KB
330 lines

SemiStr

Intro

An immutable string stored inline or on heap.

It occuipies 16 bytes on stack.

Inline: 4-byte length + 12 bytes data. Heap: 4-byte length + 4-byte prefix data + 8-byte pointer to atomic reference counting data.

License

This project is licensed under either of

at your option.

Dependencies

~210–650KB
~15K SLoC