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

Upgrade integers() backend and filter rewriting #2878

Merged
merged 3 commits into from
Mar 14, 2021

Conversation

Zac-HD
Copy link
Member

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

This PR refactors the implementation of integers(), so that it consists only of an IntegersStrategy class instead of various combinations, maps, and filters over separate classes for bounded and unbounded integers.

Data-generation is logically unchanged, with negligible performance changes in runtime and memory usage - the real motivation here is to empower runtime introspection for filter-rewriting (#2701) and prototyping symbolic execution.

@Zac-HD Zac-HD added the enhancement it's not broken, but we want it to be better label Feb 26, 2021
@Zac-HD Zac-HD requested a review from DRMacIver as a code owner February 26, 2021 12:49
Zac-HD added 2 commits March 14, 2021 12:14
Via a morning paging through noisy output from pylint and some proprietary services.
@Zac-HD Zac-HD merged commit 7e86f34 into HypothesisWorks:master Mar 14, 2021
@Zac-HD Zac-HD deleted the efficient-filter branch March 14, 2021 01:42
This was referenced Mar 15, 2021
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant