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

perf(cli/body): improve .arrayBuffer() speed #6669

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

marcosc90
Copy link
Contributor

@marcosc90 marcosc90 commented Jul 6, 2020

Use content-length header if available to grow the Buffer once to avoid extra allocations & copies.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - thanks Marcos

@ry ry merged commit e4899b6 into denoland:master Jul 8, 2020
@marcosc90 marcosc90 deleted the body-concatenate-perf branch July 8, 2020 08:59
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.

None yet

2 participants