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(fetch): optimize fillHeaders() key iteration #12287

Merged
merged 2 commits into from
Oct 1, 2021

Conversation

AaronO
Copy link
Contributor

@AaronO AaronO commented Oct 1, 2021

Reduces self-time by ~70x (~70ms => ~1ms on 1M iters)

for...in filtered by hasOwnProperty yields the same set of keys as Object.keys()

Reduces self-time by ~70x (~70ms => ~1ms on 1M iters)

for...in filtered by hasOwnProperty yields the same set of keys as Object.keys()
@AaronO AaronO merged commit f68825e into denoland:main Oct 1, 2021
@AaronO AaronO deleted the perf/fillHeaders-key-iter branch October 1, 2021 10:17
ry pushed a commit that referenced this pull request Oct 4, 2021
Reduces self-time by ~70x (~70ms => ~1ms on 1M iters)

for...in filtered by hasOwnProperty yields the same set of keys as Object.keys()
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