-
Notifications
You must be signed in to change notification settings - Fork 148
perf(l1)!: change jump_targets to a bitmap #5739
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
Conversation
Lines of code reportTotal lines added: Detailed view |
Benchmark Results ComparisonNo significant difference was registered for any benchmark run. Detailed ResultsBenchmark Results: BubbleSort
Benchmark Results: ERC20Approval
Benchmark Results: ERC20Mint
Benchmark Results: ERC20Transfer
Benchmark Results: Factorial
Benchmark Results: FactorialRecursive
Benchmark Results: Fibonacci
Benchmark Results: FibonacciRecursive
Benchmark Results: ManyHashes
Benchmark Results: MstoreBench
Benchmark Results: Push
Benchmark Results: SstoreBench_no_opt
|
3c394cc to
e4cb60d
Compare
Benchmark Block Execution Results Comparison Against Main
|
| // The valid addresses are 32-bit because, despite EIP-3860 restricting initcode size, | ||
| // this does not apply to previous forks. This is tested in the EEST tests, which would | ||
| // panic in debug mode. |
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.
This comment should be updated, since it's about the specifics of the old implementation
| let bytes_size = size_of::<Bytes>(); | ||
| let vec_size = size_of::<Vec<u32>>() + self.jump_targets.len() * size_of::<u32>(); | ||
| hash_size + bytes_size + vec_size | ||
| let bitmap_size = size_of::<Vec<u64>>() + self.jump_targets.len() * size_of::<u64>(); |
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.
Maybe use std::mem::size_of_val like in encode_code (which should probably be calling this function instead of calculating this).
|
Seeing the eest benches, this doesn't improve performance, so im closing it |
Motivation
Description
Checklist
STORE_SCHEMA_VERSION(crates/storage/lib.rs) if the PR includes breaking changes to theStorerequiring a re-sync.Closes #issue_number