Skip to content

Conversation

@xqft
Copy link
Contributor

@xqft xqft commented Oct 17, 2025

Motivation

merged the 3 trie opts, temporary pr

@xqft xqft changed the title chore(l2): temp! all trie optimizations temp(l1,l2): temp! all trie optimizations Oct 17, 2025
@xqft xqft changed the title temp(l1,l2): temp! all trie optimizations temp(l1,l2): all trie optimizations Oct 17, 2025
@github-actions github-actions bot added L1 Ethereum client L2 Rollup client labels Oct 17, 2025
@github-actions
Copy link

Benchmark for 1611712

Click to view benchmark
Test Base PR %
Trie/cita-trie insert 10k 36.8±2.91ms 36.5±1.92ms -0.82%
Trie/cita-trie insert 1k 3.5±0.02ms 3.5±0.02ms 0.00%
Trie/ethrex-trie insert 10k 63.1±0.82ms 48.2±0.82ms -23.61%
Trie/ethrex-trie insert 1k 8.1±0.07ms 6.9±0.04ms -14.81%

@github-actions
Copy link

github-actions bot commented Oct 17, 2025

Lines of code report

Total lines added: 312
Total lines removed: 0
Total lines changed: 312

Detailed view
+---------------------------------------------+-------+------+
| File                                        | Lines | Diff |
+---------------------------------------------+-------+------+
| ethrex/crates/common/rlp/encode.rs          | 527   | +16  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/rlp/structs.rs         | 200   | +37  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/nibbles.rs        | 336   | +30  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/node.rs           | 387   | +141 |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/node/branch.rs    | 537   | +8   |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/node/extension.rs | 454   | +23  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/node/leaf.rs      | 291   | +25  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/node_hash.rs      | 125   | +16  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/trie.rs           | 929   | +15  |
+---------------------------------------------+-------+------+
| ethrex/crates/common/trie/trie_iter.rs      | 207   | +1   |
+---------------------------------------------+-------+------+

@github-actions
Copy link

Benchmark for 40ae3d2

Click to view benchmark
Test Base PR %
Trie/cita-trie insert 10k 34.7±0.22ms 35.5±0.83ms +2.31%
Trie/cita-trie insert 1k 3.6±0.01ms 3.5±0.02ms -2.78%
Trie/ethrex-trie insert 10k 61.5±1.75ms 47.5±1.39ms -22.76%
Trie/ethrex-trie insert 1k 8.0±0.14ms 6.9±0.06ms -13.75%

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

Labels

L1 Ethereum client L2 Rollup client

Projects

Status: No status
Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants