-
Notifications
You must be signed in to change notification settings - Fork 551
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
fix: copy buffers #711
fix: copy buffers #711
Conversation
Fixes: #710
Not sure if there is a faster way to copy which doesn't not involved creating a temporary |
I think this should be about as fast as it can be, but you could experiment by creating a buffer from buffer something like wrapping your previous |
@indutny: Another question. Would it be possible for |
@ronag that buffer is relative to the input of the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a feeling that this unwinds any gain we got by using buffers for Headers, would not be better to revert?
Anyway LGTM
I still haven’t given up. I think I can sort this as zero copy still. |
Fixes: nodejs/llhttp#100 Refs: #711
* perf: zero copy llhttp buffers Fixes: nodejs/llhttp#100 Refs: #711 * fixup * fixup * fixup
* perf: zero copy llhttp buffers Fixes: nodejs/llhttp#100 Refs: nodejs#711 * fixup * fixup * fixup
Fixes: #710