Skip to content
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

IntermediateRoot: add flag for threshold to update concurrently #453

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on May 22, 2024

  1. IntermediateRoot: add flag for threshold to update concurrently

    Divide the root updating of stateObjects into goroutines if number of stateObjects is at least the threshold
    -> results in 1.55 times faster
    statedb_test.go/TestIntermediateUpdateConcurrently: add test to check if the states after processed with both options are identical
    Francesco4203 committed May 22, 2024
    Configuration menu
    Copy the full SHA
    51fef19 View commit details
    Browse the repository at this point in the history
  2. intermediateRoot: update concurrency handling

    statedb/intermediateRoot: update options for concurrent: get changes that are not made yet to run concurrently
    state_object/updateTrie: add option for concurrency: store and return data waiting for update
    Francesco4203 committed May 22, 2024
    Configuration menu
    Copy the full SHA
    08fd7c3 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    f1c23c9 View commit details
    Browse the repository at this point in the history
  2. IntermediateRoot: select sequential/concurrent trie update based on flag

    statedb.go/StateDB struct: remove lock since it will not be used for concurrent update
    statedb.go/IntermediateRoot: check ConcurrentUpdateThreshold for choosing between sequential and concurrent update
    state_object.go: change "concurrent" variable to a more reasonable name "skipTrieUpdate"
    flags.go/MakeChain: add flag when creating a chain
    Francesco4203 committed May 27, 2024
    Configuration menu
    Copy the full SHA
    bb5526e View commit details
    Browse the repository at this point in the history