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

Obtain the last block's length without having to create it #1873

Merged
merged 1 commit into from
Mar 18, 2019

Conversation

Zalathar
Copy link
Contributor

This eliminates the one call site that was causing Block allocation during generation, after #1830.

(It was originally a part of #1862, but I pulled it out here because it's a perfectly fine incremental improvement on its own.)

In theory this could enable some simplifications of the lazy block management code, but in practice I haven't actually investigated any of those yet.

@Zac-HD Zac-HD added the performance go faster! use less memory! label Mar 15, 2019
@Zac-HD Zac-HD merged commit 87e18a7 into HypothesisWorks:master Mar 18, 2019
@Zac-HD
Copy link
Member

Zac-HD commented Mar 18, 2019

Thanks @Zalathar! I really appreciate your attention to the internal details - it's often invisible to users, but no less important for that 😄

@Zalathar Zalathar deleted the last-block-length branch March 18, 2019 08:34
@DRMacIver DRMacIver mentioned this pull request Mar 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance go faster! use less memory!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants