librustzcash/zcash_history/src
Kris Nuttycombe 4127e96082 Reduce the size of proptest-generated history trees.
After replacing `quickcheck` with `proptest` in `zcash_history`, memory
consumption of the property tests grew substantially as a consequence of
sample generation exploring the upper bounds of sample ranges;
previously, the large operation counts would have occurred only with low
probability. However, the correctness of the operations on the `Tree`
data structure should not depend upon the tree size, so it's fine to
reduce the number of operations in order to bound the memory
consumption. As the documentation on `Tree` notes, this data structure
is not intended to be used stand-alone because doing so may result in
unbounded memory use; the property tests were doing exactly this and so
were producing this exact pathological memory behavior.
2023-04-14 14:31:32 -06:00
..
entry.rs zcash_history: Introduce Version trait 2021-06-11 02:02:07 +01:00
lib.rs Use the new name rustdoc::broken_intra_doc_links 2022-07-29 15:56:44 -06:00
node_data.rs Use `proptest` instead of `quickcheck` for `zcash_history` tests. 2023-04-14 14:31:32 -06:00
tree.rs Reduce the size of proptest-generated history trees. 2023-04-14 14:31:32 -06:00
version.rs Fix clippy complaints 2021-06-23 16:37:48 -06:00