Skip to content

fix: remove extra alloc used to copy - #938

Merged
Its-Just-Nans merged 3 commits into
masterfrom
remove-alloc-copy
Aug 16, 2026
Merged

Its-Just-Nans merged 3 commits into
masterfrom
remove-alloc-copy

Conversation

@Its-Just-Nans

@Its-Just-Nans Its-Just-Nans commented Aug 16, 2026 •

Copy link
Copy Markdown
Member

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This PR successfully eliminates an unnecessary allocation by changing CustomExtraField::new() to accept Box<[u8]> instead of &[u8]. The optimization is valid and all call sites have been correctly updated. The changes maintain correctness while improving performance.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Its-Just-Nans
Its-Just-Nans added this pull request to the merge queue Aug 16, 2026
Merged via the queue into master with commit 16e8abb Aug 16, 2026
225 of 237 checks passed
@Its-Just-Nans
Its-Just-Nans deleted the remove-alloc-copy branch August 16, 2026 20:09
@Pr0methean Pr0methean mentioned this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant