Commits
Click on a commit to change the comparison rangeadd an in-place compress path using only safe code
Using the FSST library currently requires you to make two allocations
1. Allocate a buffer to compress_into
2. Allocate a larger packed buffer
We shouldn't take a &mut Vec<u8> directly, since Vec isn't
splittable. We should instead be taking &mut [MaybeUninit<u8>], which
can be backed by Vec, Bytes, Buffer<u8> or whatever other memory
allocation we happen to get our hands on.
This PR adds a new safe compression pathway that exposes
`compress_into_uninit` and implements the hot loop using only safe code
to boot.
Signed-off-by: Andrew Duffy <andrew@a10y.dev> elide bounds check (maybe?)
Signed-off-by: Andrew Duffy <andrew@a10y.dev> maybe now elide bounds chekc?
Signed-off-by: Andrew Duffy <andrew@a10y.dev> fix typos
Signed-off-by: Andrew Duffy <andrew@a10y.dev>