reth icon indicating copy to clipboard operation
reth copied to clipboard

perf(db): reduce allocations in Compact derive

Open DaniPopes opened this issue 1 year ago • 1 comments
trafficstars

Closes https://github.com/paradigmxyz/reth/issues/11296

Moved fields encoding and flag construction to inner method, then wrapped it with either tmp buffer for zstd, or pass on the buffer directly to it if no zstd

WIP: use compress_to_buffer which requires another compat struct between zstd trait and bufmut

Blocked by https://github.com/paradigmxyz/reth/issues/11351

cc @joshieDo

DaniPopes avatar Sep 30 '24 14:09 DaniPopes