feat(trie): add HashedPostStateSorted::from_reverts
Adds `HashedPostStateSorted::from_reverts` that returns sorted hashed
state directly from database changesets, eliminating the intermediate
unsorted `HashedPostState` and the separate `.into_sorted()` call.
Closes #19382
1f228ec
6 hours ago
by yongkangc
-0.09%
feat(tests): add unit tests for sorted reverts in HashedPostStateSorted
Introduces new tests to verify that sorted reverts match the unsorted-to-sorted conversion and maintain ordering guarantees. This ensures the integrity of account and storage changesets in the hashed state.
5b39e2e
5 hours ago
by yongkangc
-0.02%
remove unused benchmark for revert data processing
c4deb14
4 hours ago
by yongkangc
+0.08%
feat(trie): add overlay root calculations for HashedPostStateSorted
Introduces methods to calculate the state root for `HashedPostStateSorted`, including `overlay_root_sorted` and `overlay_root_sorted_with_updates`. These methods optimize the process by skipping unnecessary intermediate data structures, enhancing performance for sorted state operations. Additionally, a new test is added to ensure that the sorted overlay root matches the unsorted variant, verifying the integrity of the implementation.
02bf3d0
4 hours ago
by yongkangc
+0.01%
fix: remove useless .into() conversions in trie db tests
BlockNumberAddress values were being converted to themselves
unnecessarily, triggering clippy useless_conversion warnings.