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

Rewrite simple filters for bounded integers() #2853

Merged
merged 2 commits into from Feb 24, 2021

Conversation

Zac-HD
Copy link
Member

@Zac-HD Zac-HD commented Feb 8, 2021

This pull request is the first piece of #2701.

It demonstrates that the concept works, handles the tricky interactions with LazyStrategy and chained filters (though one_of() is left for future work), and provides obvious locations for future contributions - such as copying this logic for floats(). Further discussion of how the overall plan can be broken down into pull requests can be found at #2701, along with next steps.

Copy link
Contributor

@rsokl rsokl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just some minor requests

This is a minimal proof-of-concept for predicate rewriting, sufficient to demonstrate that it works without breaking anything else.  Equally importantly, it adds clear hooks for future work to allow open collaboration.
@Zac-HD Zac-HD merged commit c8d7875 into HypothesisWorks:master Feb 24, 2021
@Zac-HD Zac-HD deleted the efficient-filter branch February 24, 2021 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement it's not broken, but we want it to be better performance go faster! use less memory!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants