perf: improve IntegerList API to avoid allocations (#11292)

This commit is contained in:
DaniPopes
2024-09-27 18:46:33 +02:00
committed by GitHub
parent 8dfab3354b
commit bf18fd927c
13 changed files with 71 additions and 71 deletions

View File

@ -12,6 +12,7 @@ impl Compress for IntegerList {
fn compress(self) -> Self::Compressed {
self.to_bytes()
}
fn compress_to_buf<B: bytes::BufMut + AsMut<[u8]>>(self, buf: &mut B) {
self.to_mut_bytes(buf)
}