Skip to content

Conversation

@edg-l
Copy link
Contributor

@edg-l edg-l commented Nov 28, 2025

Added HashBuffer, this is a buffer that implements BufMut and feeds data to a keccak256 hasher, this way we avoid a temporary vec when computing hash of transactions.

A quick bench shows it goes from 4.70s to 4.28s in 10000000 iterations

@github-actions github-actions bot added L1 Ethereum client performance Block execution throughput and performance in general labels Nov 28, 2025
@github-actions
Copy link

github-actions bot commented Nov 28, 2025

Lines of code report

Total lines added: 68
Total lines removed: 0
Total lines changed: 68

Detailed view
+-------------------------------------------+-------+------+
| File                                      | Lines | Diff |
+-------------------------------------------+-------+------+
| ethrex/crates/common/types/transaction.rs | 3248  | +5   |
+-------------------------------------------+-------+------+
| ethrex/crates/common/utils.rs             | 131   | +63  |
+-------------------------------------------+-------+------+

@github-actions
Copy link

github-actions bot commented Nov 28, 2025

Benchmark Block Execution Results Comparison Against Main

Command Mean [s] Min [s] Max [s] Relative
base 61.573 ± 0.490 60.851 62.290 1.00 ± 0.01
head 61.272 ± 0.290 60.869 61.863 1.00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

L1 Ethereum client performance Block execution throughput and performance in general

Projects

Status: No status
Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants