-
-
Notifications
You must be signed in to change notification settings - Fork 688
perf: use less promises in extractBody #4458
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
Conversation
KhafraDev
left a comment
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.
|
See my answer to your linked comment. |
mcollina
left a comment
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.
lgtm
gurgunday
left a comment
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.
lgtm
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.
Pull Request Overview
This PR improves performance in the extractBody function by reducing the use of async/await syntax in favor of explicit promise handling.
- Removes async/await from ReadableStream controller methods
- Converts async functions to return promises directly using
.then() - Simplifies promise handling in iterator operations
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
It was condition by Khafra, that he has no objection if i remove the promise counting test. I removed it. No revew till now.
This relates to...
Rationale
Changes
Features
Bug Fixes
Breaking Changes and Deprecations
Status