-
Notifications
You must be signed in to change notification settings - Fork 110
perf(l1): remove dynamic dispatch in favour of known Vec in rlp encoding trait #4844
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
edg-l
wants to merge
2
commits into
main
Choose a base branch
from
improve_encoding_rlp
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Lines of code reportTotal lines added: Detailed view
|
Benchmark for 24a127aClick to view benchmark
|
Benchmark for 809effeClick to view benchmark
|
Benchmark Block Execution Results Comparison Against Main
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
b4ba2e2
to
76d1b6e
Compare
Benchmark for 6f0961aClick to view benchmark
|
Benchmark for 0138e9cClick to view benchmark
|
closing as it doesn-t seem to improve the performance |
Benchmark for 3a40715Click to view benchmark
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
This should enable better optimizations from the compiler since it will use a known type: Vec, instead of the dynamic fat pointer from the bufmut trait.
I looked at all the source code, and we are using a trait when we always passa Vec here. So the trait overhead is essentially useless.
Description
Remove the bufmut trait usage, use a Vec directly
This is the first pr im doing as i look to improve the rlp encoding/decoding, since its a known overhead now.