Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove consecutive discards heuristic #2290

Merged
merged 2 commits into from Dec 21, 2019
Merged

Conversation

DRMacIver
Copy link
Member

We have a heuristic in ConjectureData which turns long sequences of discards into invalid test cases. This PR removes that heuristic.

Justification

This heuristic was introduced in #2030 as a workaround to performance problems. Since #2185 we no longer hit those performance problems because we mark parts of the tree with discards in them as not worth exploring, and generate_novel_prefix will steer us clear of there. This is a better solution: We don't artificially make some discards invalid, but we don't spend ages trying to draw many equivalent tests.

Meanwhile, leaving it in is a bit of a footgun - I lost about 20 minutes earlier to debugging something that turned out to be the result of triggering this (and in that case I was perfectly fine with long series of discards).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants