Skip to content

feat: optimize access to precompile short addreesses#2846

Merged
rakita merged 6 commits intomainfrom
rakita/short_precompile_address
Aug 5, 2025
Merged

feat: optimize access to precompile short addreesses#2846
rakita merged 6 commits intomainfrom
rakita/short_precompile_address

Conversation

@rakita
Copy link
Member

@rakita rakita commented Aug 4, 2025

All mainnet precompiles are under the first 100 addresses, we can use this knowledge and optimise access to those functions so we dont need to access the hashmap

@codspeed-hq
Copy link

codspeed-hq bot commented Aug 4, 2025

CodSpeed Performance Report

Merging #2846 will not alter performance

Comparing rakita/short_precompile_address (f9138d3) with main (cb5dca9)

Summary

✅ 171 untouched benchmarks

@rakita rakita merged commit cfed608 into main Aug 5, 2025
30 checks passed
@rakita rakita deleted the rakita/short_precompile_address branch August 5, 2025 14:06
@zerosnacks

This comment was marked as outdated.

lwedge99 pushed a commit to sentioxyz/revm that referenced this pull request Sep 16, 2025
* chore: specialize halt, making instruction code very slightly smaller

* feat: optimize access to precompile short addreesses

* clippy

* cleaup, helper fn, short_address_cap to 300

* doc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants