8000 ArrayPtr-based AsyncInputStream::read() by mikea · Pull Request #2319 · capnproto/capnproto · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ArrayPtr-based AsyncInputStream::read() #2319

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

Merged
merged 3 commits into from
Jun 19, 2025
Merged

Conversation

mikea
Copy link
Collaborator
@mikea mikea commented Jun 11, 2025

No description provided.

@mikea mikea force-pushed the maizatskyi/2025-06-10-async-min-read branch 2 times, most recently from bb214d9 to 9b85e7c Compare June 11, 2025 17:35
@mikea mikea force-pushed the maizatskyi/2025-06-10-async-min-read branch from 45571a8 to 8ce9427 Compare June 11, 2025 18:43
mikea added a commit to cloudflare/workerd that referenced this pull request Jun 11, 2025
The method becomes non-virtual in capnproto/capnproto#2319
We can remove the override now.
mikea added a commit to cloudflare/workerd that referenced this pull request Jun 11, 2025
The method becomes non-virtual in capnproto/capnproto#2319
We can remove the override now.
@mikea mikea force-pushed the maizatskyi/2025-06-10-async-min-read branch from 8ce9427 to df5e600 Compare June 16, 2025 16:32
@@ -1791,7 +1791,7 @@ private:
maxBytes = kj::min(maxBytes, MAX_CHUNK_HEADER_SIZE);
}

readPromise = inner.read(headerBuffer.begin() + bufferEnd, 1, maxBytes);
readPromise = inner.read(headerBuffer.slice(bufferEnd).first(maxBytes).asBytes(), 1);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this is the only non-trivial change.

@mikea mikea requested review from kentonv and fhanau June 16, 2025 19:19
@mikea mikea marked this pull request as ready for review June 16, 2025 19:19
@mikea mikea force-pushed the maizatskyi/2025-06-10-async-min-read branch from df5e600 to ff6ec3b Compare June 19, 2025 21:41
@mikea mikea merged commit fb9af63 into v2 Jun 19, 2025
20 checks passed
@mikea mikea deleted the maizatskyi/2025-06-10-async-min-read branch June 19, 2025 21:50
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.

2 participants
0