Skip to content

Commit

Permalink
enable multithreading by default (10-20% faster sync) (status-im#3493)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefantalpalaru authored Mar 19, 2022
1 parent a1f3adc commit ea5c052
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions beacon_chain/conf.nim
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ type
name: "slashing-db-kind" }: SlashingDbKind

numThreads* {.
defaultValue: 1,
desc: "Number of worker threads (set this to 0 to use as many threads as there are CPU cores available)"
defaultValue: 0,
desc: "Number of worker threads (\"0\" = use as many threads as there are CPU cores available)"
name: "num-threads" }: int

case cmd* {.
Expand Down
4 changes: 2 additions & 2 deletions docs/the_nimbus_book/src/options.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ The following options are available:
--insecure-netkey-password Use pre-generated INSECURE password for network private key file [=false].
--agent-string Node agent string which is used as identifier in network [=nimbus].
--subscribe-all-subnets Subscribe to all subnet topics when gossiping [=false].
--num-threads Number of worker threads (set this to 0 to use as many threads as there are CPU
cores available) [=1].
--num-threads Number of worker threads ("0" = use as many threads as there are CPU cores
available) [=0].
-b, --bootstrap-node Specifies one or more bootstrap nodes to use when connecting to the network.
--bootstrap-file Specifies a line-delimited file of bootstrap Ethereum network addresses.
--listen-address Listening address for the Ethereum LibP2P and Discovery v5 traffic [=0.0.0.0].
Expand Down

0 comments on commit ea5c052

Please sign in to comment.