-
Notifications
You must be signed in to change notification settings - Fork 129
perf(l1): change encode_to_vec().len() -> length(), avoiding encoding to calc rlp length #5374
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
Merged
Merged
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
b54f280
improve rlp encoding
edg-l 1c34ded
improve
edg-l 65b23a1
lint
edg-l cf4fe74
remove another arrayvec
edg-l 42fb6a7
docs2
edg-l ac21442
changelog
edg-l 3c1fa78
more
edg-l 0550e12
length for vec
edg-l 4607070
improve tuples too
edg-l d3707c0
add specialized length for most types
edg-l 0937315
lint
edg-l 749655e
Merge branch 'main' into rlp_improve_encode
edg-l af50dc9
more tests
edg-l 4c7de59
comment
edg-l 1801cae
fix optionals
edg-l 8136522
Merge remote-tracking branch 'origin/main' into rlp_improve_encode
edg-l c55f236
0
edg-l af6f7f2
replace encode_to_vec().len() calls with length(), add some tests
edg-l fc39cd1
length
edg-l 89c2832
Merge branch 'main' into rlp_improve_encode
edg-l 10a7c46
fix changelog
edg-l 832e926
Merge branch 'main' into rlp_improve_encode
edg-l c2d05cc
Merge branch 'main' into rlp_improve_encode
edg-l d73b157
comment and fix
edg-l ac6d15a
comment
edg-l e9cdff4
Merge remote-tracking branch 'origin/rlp_improve_encode' into rlp_imp…
edg-l dd6368b
changelog
edg-l 8973c25
comments2
edg-l 2d6a390
more readable
edg-l d4aa7a2
fix
edg-l 145c6aa
use ByteCounter fake BytesMut
edg-l f27a573
avoid division
edg-l f91c3c1
remove unneeded check
edg-l 67acb70
changelog
edg-l b033860
Merge remote-tracking branch 'origin/main' into rlp_improve_encode
edg-l 594a785
lint
edg-l 83c9d45
Update crates/common/rlp/encode.rs
edg-l 7360d8d
Update crates/common/rlp/encode.rs
edg-l 07a6ef5
simplify and fix test
edg-l 1d8df0a
Merge remote-tracking branch 'origin/main' into rlp_improve_encode
edg-l 7917a07
lint
edg-l 09c4561
Merge branch 'main' into rlp_improve_encode
edg-l 7cec850
Merge branch 'rlp_improve_encode' into rlp_improve_encode_part2
edg-l 4ec0d49
Merge branch 'main' into rlp_improve_encode
edg-l 351b4e2
Merge branch 'main' into rlp_improve_encode
edg-l b92c79e
Merge branch 'rlp_improve_encode' into rlp_improve_encode_part2
edg-l 8d9e63c
Merge remote-tracking branch 'origin/main' into rlp_improve_encode_part2
edg-l File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this can be done without cloning
headerandbody. Not for this PR.Maybe something like:
Ugly but I think should work.