Skip to content

Conversation

@lukalt
Copy link
Contributor

@lukalt lukalt commented Oct 8, 2025

The copy assignment operator results into a clone of the input IOBuffer (cloneAsValue), which is followed by a coalesce operation on the previously cloned buffer (coalesceWithHeadroomTailroom ).

Both operations can be combined by calling cloneCoalescedAsValueWithHeadroomTailroom instead, which gives a measurable speedup due to reduced overhead of the clone operation. On an aarch64 system, I measured a 17% speedup with 72 worker threads for the deser_a input.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 8, 2025
@meta-codesync
Copy link

meta-codesync bot commented Oct 8, 2025

@excelle08 has imported this pull request. If you are a Meta employee, you can view this in D84159390.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant