Skip to content

Conversation

@g-r-a-n-t
Copy link
Collaborator

@g-r-a-n-t g-r-a-n-t commented Jun 17, 2023

What was wrong?

The buf write implementation seems unnecessarily complicated.

Currently we allocate the exact len in memory for the buffer and ensure via rewrite_slot that we do not modify data outside of the buf's allocated region.

This PR changes the buf implementation so that an extra 31 bytes is allocated for bufs. This eliminates the need for a function like rewrite_slot.

How was it fixed?

⌨️

To-Do

  • OPTIONAL: Update Spec if applicable
  • Add entry to the release notes (may forgo for trivial changes)
  • Clean up commit history

@g-r-a-n-t g-r-a-n-t force-pushed the buf-simplification branch from fe63372 to af01457 Compare June 17, 2023 23:51
@g-r-a-n-t g-r-a-n-t requested a review from cburgdorf June 17, 2023 23:52
@g-r-a-n-t g-r-a-n-t force-pushed the buf-simplification branch from af01457 to b67e25b Compare June 21, 2023 16:42
@g-r-a-n-t g-r-a-n-t merged commit c7015d1 into argotorg:master Jun 21, 2023
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.

2 participants