From c16a0183e5d8f4d9a86cf770fb0ae7851ca606b8 Mon Sep 17 00:00:00 2001 From: Martin Holst Swende Date: Mon, 7 Oct 2024 14:03:12 +0200 Subject: [PATCH] trie: set back parallelism-threshold to 100 --- trie/trie.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trie/trie.go b/trie/trie.go index dea8b3232d..934dec5d19 100644 --- a/trie/trie.go +++ b/trie/trie.go @@ -647,8 +647,8 @@ func (t *Trie) Commit(collectLeaf bool) (common.Hash, *trienode.NodeSet) { for _, path := range t.tracer.deletedNodes() { nodes.AddNode([]byte(path), trienode.NewDeleted()) } - // If the number of changes is below 400, we let one thread handle it - t.root = newCommitter(nodes, t.tracer, collectLeaf, t.uncommitted > 400).Commit(t.root) + // If the number of changes is below 100, we let one thread handle it + t.root = newCommitter(nodes, t.tracer, collectLeaf, t.uncommitted > 100).Commit(t.root) t.uncommitted = 0 return rootHash, nodes }