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

Improve performance of generate_novel_prefix #2037

Merged
merged 5 commits into from Jul 5, 2019

Conversation

DRMacIver
Copy link
Member

@DRMacIver DRMacIver commented Jul 5, 2019

Fixes #2027

This is the performance patch I pulled from #2030 because it didn't seem necessary and changes the data distribution for some reason caused us to lose coverage.

I decided that the reason we lost coverage was mostly accidental - the previous tests couldn't reliably guarantee that coverage, they just happened to work - so I also added some tests for datetimes in this PR in order to get back to 100% coverage. I've also upped the max_examples count on one test that had become flaky, so I think there's some chance that this has made the data distribution slightly worse, but I think it's worth it for the performance gain.

@DRMacIver DRMacIver force-pushed the DRMacIver/generate-novel-prefix-performance branch from 90956bb to 51ae1b2 Compare July 5, 2019 09:30
@DRMacIver DRMacIver changed the title [WIP] Improve performance of generate_novel_prefix Improve performance of generate_novel_prefix Jul 5, 2019
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

👍

(I'll go update the stackoverflow question too)

@Zac-HD Zac-HD merged commit 595cfaf into master Jul 5, 2019
@Zac-HD Zac-HD deleted the DRMacIver/generate-novel-prefix-performance branch July 5, 2019 16:49
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.

Simple test never stop?
2 participants