Skip to content

refactor: remove CTX phantomdata from precompile providers#2178

Merged
klkvr merged 1 commit intomainfrom
klkvr/precompile-generics
Mar 10, 2025
Merged

refactor: remove CTX phantomdata from precompile providers#2178
klkvr merged 1 commit intomainfrom
klkvr/precompile-generics

Conversation

@klkvr
Copy link
Collaborator

@klkvr klkvr commented Mar 10, 2025

Right now EthPrecompiles and OpPrecompileProvider have a CTX generic and PhantomData. This is not neccesarry and is sometimes bad because we can't reuse the same provider object for different databases.

The PR adds CTX generic to PrecompileProvider trait instead and removes phantomdatas from those types.

Also, OpPrecompileProvider is renamed to OpPrecompiles to follow eth naming

@klkvr klkvr force-pushed the klkvr/precompile-generics branch from 805a682 to 2015973 Compare March 10, 2025 19:21
@klkvr klkvr requested a review from rakita March 10, 2025 19:21
@codspeed-hq
Copy link

codspeed-hq bot commented Mar 10, 2025

CodSpeed Performance Report

Merging #2178 will not alter performance

Comparing klkvr/precompile-generics (2015973) with main (8da555e)

Summary

✅ 8 untouched benchmarks

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this makes sense to me

@klkvr klkvr merged commit 9e39df5 into main Mar 10, 2025
29 checks passed
@github-actions github-actions bot mentioned this pull request Mar 10, 2025
Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

This was referenced Mar 11, 2025
@rakita rakita deleted the klkvr/precompile-generics branch May 8, 2025 13:36
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