Perhaps these little optimizations might be significant in large cases. generator-ast made at least their ugliness painfully obvious, as you can see in the updated tests (this is more obvious in test/malli/generator_test.cljc after whitespace changes are hidden).
Use gen/return for singleton gen/elements calls.
Use constrained gen/vector instead of (gen/not-empty (gen/vector ..)).
Add dev helper generator-code to help generate the large recursive-gen test cases.
Perhaps these little optimizations might be significant in large cases.
generator-ast
made at least their ugliness painfully obvious, as you can see in the updated tests (this is more obvious intest/malli/generator_test.cljc
after whitespace changes are hidden).gen/return
for singletongen/elements
calls.gen/vector
instead of(gen/not-empty (gen/vector ..))
.Add dev helper
generator-code
to help generate the largerecursive-gen
test cases.