7 unstable releases (3 breaking)
new 0.4.0 | Feb 18, 2025 |
---|---|
0.3.1 | Feb 17, 2025 |
0.2.2 | Feb 17, 2025 |
0.1.0 | Feb 14, 2025 |
#249 in Memory management
409 downloads per month
27KB
678 lines
A [SnapBuf] is like a Vec<u8>
with cheap snapshotting using copy on write.
Internally, the data is broken up into segments that are organized in a tree structure. Only modified subtrees are cloned, so buffers with only little differences can share most of their memory. Moreover, subtrees which contain only zeros take up no memory.
Dependencies
~63–560KB
~10K SLoC