-
Notifications
You must be signed in to change notification settings - Fork 2.2k
perf(engine): return sorted data from compute_trie_input #19340
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
+501
−139
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
eb7d8c6
perf(engine): return sorted data from compute_trie_input
yongkangc 43ceb89
refactor(engine): optimize trie input handling in compute_trie_input
yongkangc 3fd4996
update call site
yongkangc 9b83edd
fix fmt
yongkangc 7c85ed3
refactor(chain-state): update to sorted trie structures
yongkangc 4249c66
added sorted for test
yongkangc 08c9a1f
refactor(engine): optimize payload validation with sorted trie input
yongkangc 23a9338
hashed_state convert to sorted
yongkangc 861579e
refactor(trie): streamline TrieInput creation from sorted blocks
yongkangc 87642e4
refactor(engine): ExecutedBlock to Arc
yongkangc 2fbcbb4
refactor(multiproof): remove MultiProofConfig struct and related methods
yongkangc 9e1fa4a
refactor(engine): simplify trie input handling in payload validation …
yongkangc 0e2c3e7
refactor(trie): enhance TrieInput with efficient prepend and Arc usage
yongkangc 5f51ed3
refactor: reference arc directly
yongkangc b346694
feat(trie): add extend_from_sorted for extending and converting hashe…
yongkangc 56ee954
extend_from_sorted
yongkangc 6fd8fd2
added comment
yongkangc acfb780
added comment
yongkangc d3e56a2
added extend_from_sorted
yongkangc 6c5cd7c
clear data
yongkangc 76babb4
remove into
yongkangc 66c73e5
Merge branch 'main' into yk/compute_trie2
yongkangc 665ae71
remove drain into sorted
yongkangc 4ca196a
rm clear
yongkangc 2667271
rm clear
yongkangc dae97c6
change function signature to rm alloc
yongkangc d251dee
comments
yongkangc 28b84bf
added back clear
yongkangc 990cb15
destructure instead of arc
yongkangc 5f90e0f
comment
yongkangc cdff945
rm alloc, use trie destructuring
yongkangc b15a062
Refactor payload validator to improve block handling and reduce alloc…
yongkangc ba70ee7
fast path
yongkangc 37bdb2d
fmt
yongkangc 0e0e2d7
Enhance TrieInputSorted and HashedPostStateSorted with new methods fo…
yongkangc 062aa27
Revert "Enhance TrieInputSorted and HashedPostStateSorted with new me…
yongkangc ceb77c0
added tests
yongkangc f1454d7
fmt
yongkangc 85acf27
rm comment
yongkangc 769ee47
remove append_ref method
yongkangc dc42373
removed clear() since we already have arc
yongkangc a91da57
Merge branch 'main' into yk/compute_trie2
yongkangc 789a59b
fix: add missing closing brace in hashed_state test
yongkangc ee96745
refactor: use peekable iterator in compute_trie_input
yongkangc af643c3
refactor: add append_ref method to TrieInputSorted
yongkangc 39ac52d
Merge branch 'main' into yk/compute_trie2
yongkangc cc643da
feat: add construct_prefix_sets methods for sorted state types
yongkangc 2914dbb
Revert "feat: add construct_prefix_sets methods for sorted state types"
yongkangc dbef533
Revert "refactor: add append_ref method to TrieInputSorted"
yongkangc ad5976a
refactor: update BuiltPayloadExecutedBlock to handle state sorting
yongkangc baa3361
Merge branch 'main' into yk/compute_trie2
yongkangc 48721b9
merge fixes
yongkangc dd4f233
merge
yongkangc 6d1aa15
Merge branch 'main' into yk/compute_trie2
yongkangc 360e36e
Merge branch 'main' into yk/compute_trie2
yongkangc 5f63216
Merge branch 'main' into yk/compute_trie2
yongkangc 486f1b8
perf(trie): remove pre-count loops in extend_from_sorted
yongkangc 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
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
Oops, something went wrong.
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.
Even if we still have an
into_sortedhere, it's better that it's hashed state because that's usually an order of magnitude smaller than trie updates 👍