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

ArrayPtr-based async read api. #2084

Open
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

mikea
Copy link
Collaborator

@mikea mikea commented Jun 20, 2024

No description provided.

@mikea mikea force-pushed the maizatskyi/2024-06-07-async-read-api branch 3 times, most recently from c5dab09 to 7cae47a Compare June 21, 2024 15:46
mikea added a commit to cloudflare/workerd that referenced this pull request Jun 21, 2024
@mikea mikea force-pushed the maizatskyi/2024-06-07-async-read-api branch 2 times, most recently from f5325ec to 4f73201 Compare June 24, 2024 16:25
@mikea mikea marked this pull request as ready for review June 24, 2024 16:40
@mikea mikea requested a review from jasnell June 24, 2024 16:40
mikea added a commit to cloudflare/workerd that referenced this pull request Jun 24, 2024
Copy link
Member

@kentonv kentonv left a comment

Choose a reason for hiding this comment

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

Are there any parts of this PR that aren't just mechanical updates which we should pay particular attention to?

@@ -1514,7 +1514,7 @@ public:
co_return true;
}

auto amount = co_await inner.tryRead(headerBuffer.begin(), 1, headerBuffer.size());
auto amount = co_await inner.tryRead(headerBuffer.asBytes(), 1);
Copy link
Member

Choose a reason for hiding this comment

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

redundant asBytes()?

@mikea
Copy link
Collaborator Author

mikea commented Jun 24, 2024

Are there any parts of this PR that aren't just mechanical updates which we should pay particular attention to?

Not really. I don't think I have changed anything in "real" code. Tests had some cleanup that was mostly related to string/bytes simplifications where possible. Otherwise I tried to stay as close as possible to the original.

@mikea
Copy link
Collaborator Author

mikea commented Jun 24, 2024

I also have downstream changes ready and I obviously plan to make sure all builds pass everywhere before starting to merge.

@mikea mikea force-pushed the maizatskyi/2024-06-07-async-read-api branch from 4f73201 to d04996c Compare July 24, 2024 16:34
mikea added a commit to cloudflare/workerd that referenced this pull request Jul 24, 2024
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.

3 participants