Skip to content

perf(engine): use Entry API in insert_executed#23842

Open
wataxiwajojo wants to merge 1 commit intoparadigmxyz:mainfrom
wataxiwajojo:contains
Open

perf(engine): use Entry API in insert_executed#23842
wataxiwajojo wants to merge 1 commit intoparadigmxyz:mainfrom
wataxiwajojo:contains

Conversation

@wataxiwajojo
Copy link
Copy Markdown
Contributor

Replace contains_key + insert in TreeState::insert_executed with a single entry() match, dropping the duplicate hash lookup on every block insertion. Matches the pattern already used in remove_by_hash and block_buffer::insert_block.

Replace `contains_key` + `insert` in `TreeState::insert_executed` with a single `entry()` match, dropping the duplicate hash lookup on every block insertion. Matches the pattern already used in `remove_by_hash` and `block_buffer::insert_block`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant