Add append_receipts function #8466
Labels
A-db
Related to the database
C-debt
A section of code is hard to understand or change
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
The static file writer currently only has a function for single receipts:
reth/crates/storage/provider/src/providers/static_file/writer.rs
Lines 455 to 459 in 7262d08
resulting in code like this:
reth/crates/static-file/src/segments/receipts.rs
Lines 47 to 51 in 7262d08
and
reth/crates/storage/provider/src/bundle_state/bundle_state_with_receipts.rs
Lines 48 to 52 in 7262d08
the append_receipt always does two syscalls for the clock
https://github.com/paradigmxyz/reth/blob/main/crates/storage/provider/src/providers/static_file/writer.rs#L460-L460
we can optimize this by using a append_receipts function that accepts an iterator instead and only update the metrics once
Additional context
No response
The text was updated successfully, but these errors were encountered: