Skip to content

http: don't copy bytes from octs#1007

Draft
dozreg-toplud wants to merge 3 commits into
developfrom
dozreg/http-dont-copy-bytes
Draft

http: don't copy bytes from octs#1007
dozreg-toplud wants to merge 3 commits into
developfrom
dozreg/http-dont-copy-bytes

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

Prevents an extra copy of bytes in urth process by taking an ownership of the atom from which the bytes are taken. Still does a copy if the atom is too small so it needs to be extended, or if len_w is precisely equal to met(3, atom), so the null terminator would have to be added.

@dozreg-toplud dozreg-toplud requested a review from a team as a code owner May 4, 2026 15:16
@dozreg-toplud dozreg-toplud marked this pull request as draft May 4, 2026 15:17
@dozreg-toplud
Copy link
Copy Markdown
Contributor Author

TODO test to see if performance gains are meaningful

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.

1 participant