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

Fix chunk_capacity to return the remaining capacity, not the total #209

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Fix chunk_capacity to return the remaining capacity, not the total #209

merged 1 commit into from
Jul 11, 2023

Conversation

msullivan
Copy link
Contributor

chunk_capacity is documented as returning "the remaining capacity in the current chunk", but actually returns the total capacity for the current chunk.

(Arguably, the actual behavior is itself totally sensible, and this is a documentation bug, though in that case I would propose adding a new function that returns the remaining capacity. I would like it for debugging/measurement purposes.)

`chunk_capacity` is documented as returning "the remaining capacity in
the current chunk", but actually returns the *total* capacity for the
current chunk.

(Arguably, the actual behavior is itself totally sensible, and this is
a documentation bug, though in that case I would propose adding a new
function that returns the remaining capacity. I would like it for
debugging/measurement purposes.)
aljazerzen pushed a commit to edgedb/edgedb that referenced this pull request Jul 11, 2023
Unfortunately it requires fitzgen/bumpalo#209
to be useful
Copy link
Owner

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

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

Thanks!

@fitzgen fitzgen merged commit a43fa05 into fitzgen:main Jul 11, 2023
8 checks passed
@msullivan msullivan deleted the chunk_capacity branch July 11, 2023 18:43
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

2 participants