Commit graph

668 commits

Author SHA1 Message Date
c147d62b11 WIP(smt): impl simple subtree8 hashing and benchmarks for it
bench(smt-subtree): add a benchmark for single-leaf subtrees
2024-11-13 10:54:44 -07:00
eb70bb0119 remove the cfg_attr from sorted_pairs_to_leaves 2024-11-12 15:38:49 -07:00
de380d55da add a parallel subtree criterion benchmark 2024-11-12 15:35:39 -07:00
8a3574ca13 smt: add build_subtrees() to coordinate subtree building 2024-11-12 15:35:39 -07:00
829d9c638b add a parallel construction benchmark to src/main.rs 2024-11-12 15:35:39 -07:00
1941a37a9b improve docs for build_subtree() 2024-11-12 15:35:39 -07:00
d7c9075c44 smt: add from_raw_parts() to trait interface 2024-11-12 15:35:39 -07:00
814ef33733 implement test_multithreaded_subtree 2024-11-12 15:35:39 -07:00
9cd50900af convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-12 15:35:39 -07:00
cc1b377fea smt: make with_entries() a trait method 2024-11-12 15:35:39 -07:00
07a88ed3d8 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-12 15:35:39 -07:00
485c038dc5 cleanup test_singlethreaded_subtrees a bit 2024-11-12 15:35:39 -07:00
b9504a7385 rename PrecomputedSubtrees -> PairComputations 2024-11-12 15:35:39 -07:00
0ca3597ef0 factor out subtree-append logic 2024-11-12 15:35:39 -07:00
9b140cf780 make PrecomputedSubtrees more generic 2024-11-12 15:35:39 -07:00
334b2fabd6 drop now empty commit from previous squashes 2024-11-12 15:35:13 -07:00
1c6641d103 working test_singlethreaded_subtrees() 2024-11-12 15:35:03 -07:00
54accb9628 add a parallel subtree criterion benchmark 2024-11-12 15:35:03 -07:00
c1a9fde0a6 refactor sorted_pairs_to_leaves() to also group subtrees 2024-11-12 15:35:03 -07:00
95ec2e241d smt: add build_subtrees() to coordinate subtree building 2024-11-12 15:35:03 -07:00
5a0e030fb9 add test_two_subtrees() test 2024-11-12 15:35:03 -07:00
8c328559b8 add a parallel construction benchmark to src/main.rs 2024-11-12 15:35:03 -07:00
84d2bc5e5f improve docs for build_subtree() 2024-11-12 15:35:03 -07:00
3be0b5eaf9 smt: add from_raw_parts() to trait interface 2024-11-12 15:35:03 -07:00
a5234d0772 implement test_multithreaded_subtree 2024-11-12 15:35:03 -07:00
bf5ec59c77 convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-12 15:35:03 -07:00
bf91f51465 smt: make with_entries() a trait method 2024-11-12 15:35:03 -07:00
f95635af07 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-12 15:35:03 -07:00
dbcb7dfc97 cleanup test_singlethreaded_subtrees a bit 2024-11-12 15:35:03 -07:00
5999954391 rename PrecomputedSubtrees -> PairComputations 2024-11-12 15:35:03 -07:00
60d49e247d factor out subtree-append logic 2024-11-12 15:35:03 -07:00
b0a4c7e0f5 make PrecomputedSubtrees more generic 2024-11-12 15:35:03 -07:00
80b72c9610 refactor test_build_subtree_from_leaves() 2024-11-12 15:35:02 -07:00
be8d3b12b9 add sorted_pairs_to_leaves() and test for it 2024-11-12 15:35:02 -07:00
01b763cd96 convert (col, hash) tuples to a dedicated struct 2024-11-12 15:35:02 -07:00
d6322c7359 make build_subtree also return the next leaf row 2024-11-12 15:35:02 -07:00
2a9e43fd9a squash the other half of even-generation 2024-11-12 15:31:50 -07:00
7d667de200 merkle: add a benchmark for constructing 256-leaf balanced trees 2024-11-12 15:31:34 -07:00
696be21fdb add a parallel subtree criterion benchmark 2024-11-12 15:31:34 -07:00
ea6e7e0411 bench(smt-subtree): add a benchmark for single-leaf subtrees 2024-11-12 15:31:34 -07:00
bbfc0b9010 smt: add build_subtrees() to coordinate subtree building 2024-11-12 15:31:34 -07:00
40c2ff9262 WIP(smt): impl simple subtree8 hashing and benchmarks for it 2024-11-12 15:31:34 -07:00
87a83ed28d add a parallel construction benchmark to src/main.rs 2024-11-12 15:31:34 -07:00
7d40817c94 improve docs for build_subtree() 2024-11-12 15:31:34 -07:00
24b1ff6277 smt: add from_raw_parts() to trait interface 2024-11-12 15:31:34 -07:00
4c49b9de27 implement test_multithreaded_subtree 2024-11-12 15:31:34 -07:00
bb8f438ff0 convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-12 15:31:34 -07:00
3346d07a95 smt: make with_entries() a trait method 2024-11-12 15:31:34 -07:00
a0651f62a5 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-12 15:31:34 -07:00
8b4845647f cleanup test_singlethreaded_subtrees a bit 2024-11-12 15:31:34 -07:00