perf(db): decode and decompress directly from borrowed data instead (#2050)

This commit is contained in:
joshieDo
2023-04-01 01:18:20 +08:00
committed by GitHub
parent e72b2864b2
commit 5900a7e1be
13 changed files with 84 additions and 63 deletions

View File

@ -12,7 +12,7 @@ description = "Staged syncing primitives used in reth."
reth-primitives = { path = "../../primitives" }
reth-interfaces = { path = "../../interfaces" }
reth-codecs = { path = "../codecs" }
reth-libmdbx = { path = "../libmdbx-rs", optional = true }
reth-libmdbx = { path = "../libmdbx-rs", optional = true , features = ["return-borrowed"] }
# codecs
serde = { version = "1.0.*", default-features = false }