Skip to content

Commit fb88a69

Browse files
Merge branch 'stschnei/mr-280-parallel-certification' into 'master'
perf: [MR-280] Parallel state certification With this commit we use multiple threads to compute the certification of states. Since this operation happens every round, and scales with the number of canisters, this is an important part of the code to optimize. See merge request dfinity-lab/public/ic!9606
2 parents dafaa56 + 9f90c62 commit fb88a69

File tree

7 files changed

+574
-172
lines changed

7 files changed

+574
-172
lines changed

rs/Cargo.lock

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rs/canonical_state/BUILD.bazel

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ DEPENDENCIES = [
1313
"//rs/types/base_types",
1414
"//rs/types/error_types",
1515
"//rs/types/types",
16+
"@crate_index//:itertools",
1617
"@crate_index//:leb128",
18+
"@crate_index//:scoped_threadpool",
1719
"@crate_index//:serde",
1820
"@crate_index//:serde_bytes",
1921
"@crate_index//:serde_cbor",

rs/canonical_state/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ ic-registry-routing-table = { path = "../registry/routing_table" }
1313
ic-registry-subnet-type = { path = "../registry/subnet_type" }
1414
ic-replicated-state = { path = "../replicated_state" }
1515
ic-types = { path = "../types/types" }
16+
itertools = "0.10.3"
1617
leb128 = "0.2.1"
1718
phantom_newtype = { path = "../phantom_newtype" }
19+
scoped_threadpool = "0.1.*"
1820
serde = "1.0.99"
1921
serde_bytes = "0.11"
2022
serde_cbor = "0.11.1"

0 commit comments

Comments
 (0)