You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perf(l1, l2): move post-execution trie updates to the background (#4989)
**Motivation**
This PR moves the trie portion of the `apply_updates` function to a
background thread, improving block execution times. This background
thread receives messages through a channel to apply new trie updates and
does two things:
- First, it updates the in-memory diff layers and notifies the process
that sent the message (i.e. the block production thread) so it can
continue with block execution.
- Second, it performs the logic of persisting the bottom-most diff layer
to disk. To do this, we first pause the ongoing thread in charge of
generating the snapshots (i.e. FlatKeyValue) through a message, then
persist the diff layer to disk, then notify again the thread to continue
snapshot generation.
**Description**
<!-- A clear and concise general description of the changes this PR
introduces -->
<!-- Link to issues: Resolves#111, Resolves#222 -->
Closes #issue_number
---------
Co-authored-by: Mario Rugiero <[email protected]>
Co-authored-by: Javier Chatruc <[email protected]>
Co-authored-by: Javier Rodríguez Chatruc <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
- Reusing FindNode message per lookup loop instead of randomizing the key for each message. [#5047](https://github.com/lambdaclass/ethrex/pull/5047)
8
8
9
+
### 2025-10-23
10
+
11
+
- Move trie updates post block execution to a background thread. [#4989](https://github.com/lambdaclass/ethrex/pull/4989).
12
+
9
13
### 2025-10-21
10
14
11
15
- Instead of lazy computation of blocklist, do greedy computation of allowlist and store the result, fetch it with the DB. [#4961](https://github.com/lambdaclass/ethrex/pull/4961)
0 commit comments