mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
perf: improve IntegerList API to avoid allocations (#11292)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user