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

[C++] Check for duplicate buffers in IPC writer #36112

Open
bkietz opened this issue Jun 15, 2023 · 0 comments
Open

[C++] Check for duplicate buffers in IPC writer #36112

bkietz opened this issue Jun 15, 2023 · 0 comments

Comments

@bkietz
Copy link
Member

bkietz commented Jun 15, 2023

Describe the enhancement requested

Some operations may produce data which reuses buffers. This is particularly true with the addition of string view. It should be straightforward and cheap to detect based on pointer identity, then that buffer could be written just once and the corresponding offset reused. This should be doable without any change to the IPC format, which is not prescriptive about whether buffers overlap.

Component(s)

C++

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

No branches or pull requests

1 participant