Commit graph

580 commits

Author SHA1 Message Date
f5695bc2d5 move test_build_subtree_from_leaves() closer to where it goes 2024-11-13 12:28:00 -07:00
7163209d52 add a parallel subtree criterion benchmark 2024-11-13 12:25:57 -07:00
e731897bcd smt: add build_subtrees() to coordinate subtree building 2024-11-13 12:25:57 -07:00
124d14e132 add a parallel construction benchmark to src/main.rs 2024-11-13 12:25:57 -07:00
cdad9b57db improve docs for build_subtree() 2024-11-13 12:25:57 -07:00
0e9787c268 smt: add from_raw_parts() to trait interface 2024-11-13 12:25:57 -07:00
acef91ef32 implement test_multithreaded_subtree 2024-11-13 12:25:57 -07:00
b06334a46b convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-13 12:25:57 -07:00
308fdf1a1c smt: make with_entries() a trait method 2024-11-13 12:25:57 -07:00
30223403cd SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-13 12:25:57 -07:00
1039bb7cf5 cleanup test_singlethreaded_subtrees a bit 2024-11-13 12:25:57 -07:00
26a5cc52ac rename PrecomputedSubtrees -> PairComputations 2024-11-13 12:25:57 -07:00
a7c49faaa6 factor out subtree-append logic 2024-11-13 12:25:57 -07:00
04ca2fd3ac make PrecomputedSubtrees more generic 2024-11-13 12:25:57 -07:00
a25982dd2b working test_singlethreaded_subtrees() 2024-11-13 12:25:57 -07:00
7ce8ef7ddb refactor sorted_pairs_to_leaves() to also group subtrees 2024-11-13 12:25:57 -07:00
ef1c7f611e add test_two_subtrees() test 2024-11-13 12:25:57 -07:00
801169b609 merkle: add a benchmark for constructing 256-leaf balanced trees 2024-11-13 12:25:57 -07:00
b5b8ea4d00 refactor test_build_subtree_from_leaves() 2024-11-13 12:25:57 -07:00
60e18e6f05 add sorted_pairs_to_leaves() and test for it 2024-11-13 11:05:08 -07:00
b29f61b35a also merge 'convert (col, hash) tuples to a dedicated struct' commit 2024-11-13 11:04:40 -07:00
82984e8a3a WIP(smt): impl simple subtree8 hashing and benchmarks for it
bench(smt-subtree): add a benchmark for single-leaf subtrees

make build_subtree also return the next leaf row

convert (col, hash) tuples to a dedicated struct
2024-11-13 11:02:06 -07:00
39a042f4ee add a parallel subtree criterion benchmark 2024-11-13 11:02:06 -07:00
4d31703210 smt: add build_subtrees() to coordinate subtree building 2024-11-13 11:02:06 -07:00
275e02dcc2 add a parallel construction benchmark to src/main.rs 2024-11-13 11:02:06 -07:00
f12194e28f improve docs for build_subtree() 2024-11-13 11:02:06 -07:00
22b5e993b2 smt: add from_raw_parts() to trait interface 2024-11-13 11:02:06 -07:00
e316bfc1e2 implement test_multithreaded_subtree 2024-11-13 11:02:06 -07:00
7af1522548 convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-13 11:02:06 -07:00
3a2ea5d935 smt: make with_entries() a trait method 2024-11-13 11:02:06 -07:00
5e97b20ee8 SubtreeLeaf::from_smt_leaf() was only used in tests 2024-11-13 11:02:06 -07:00
c393bff47a cleanup test_singlethreaded_subtrees a bit 2024-11-13 11:02:06 -07:00
dd12788ea9 rename PrecomputedSubtrees -> PairComputations 2024-11-13 11:02:06 -07:00
4346820b5a factor out subtree-append logic 2024-11-13 11:02:06 -07:00
423dc6d3ee make PrecomputedSubtrees more generic 2024-11-13 11:02:06 -07:00
cf6c17a3a8 working test_singlethreaded_subtrees() 2024-11-13 11:02:06 -07:00
36856dee1e refactor sorted_pairs_to_leaves() to also group subtrees 2024-11-13 11:02:06 -07:00
dfbb4c7168 add test_two_subtrees() test 2024-11-13 11:02:06 -07:00
08a5294a8d refactor test_build_subtree_from_leaves() 2024-11-13 11:02:06 -07:00
b534ab507a add sorted_pairs_to_leaves() and test for it 2024-11-13 11:02:06 -07:00
4eff36af70 merkle: add a benchmark for constructing 256-leaf balanced trees 2024-11-13 11:02:06 -07:00
b6c5e6c05a merge together several of the initial smt-subtree commits 2024-11-13 11:01:43 -07:00
92813bed0b add a parallel subtree criterion benchmark 2024-11-13 10:56:40 -07:00
125ad7b01a smt: add build_subtrees() to coordinate subtree building 2024-11-13 10:56:40 -07:00
82381474ca add a parallel construction benchmark to src/main.rs 2024-11-13 10:56:40 -07:00
e0b00be916 improve docs for build_subtree() 2024-11-13 10:56:40 -07:00
6f7115f6c8 smt: add from_raw_parts() to trait interface 2024-11-13 10:56:40 -07:00
c058e8acfd implement test_multithreaded_subtree 2024-11-13 10:56:40 -07:00
ee95b29390 convert test_singlethreaded_subtree to use an iterator adapter instead of state mutation 2024-11-13 10:56:40 -07:00
8997c46bb4 smt: make with_entries() a trait method 2024-11-13 10:56:40 -07:00