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(http): cache webidl.converters lookups in ext/fetch/23_response.js #26256

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Comment
  • Loading branch information
dsherret committed Oct 15, 2024
commit acd1e1f51806c225e9c509af23a97219f9bea988
1 change: 1 addition & 0 deletions ext/fetch/23_response.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const _mimeType = Symbol("mime type");
const _body = Symbol("body");
const _brand = webidl.brand;

// it's slightly faster to cache these
const webidlConvertersBodyInitDomString = webidl.converters["BodyInit_DOMString?"];
const webidlConvertersUSVString = webidl.converters["USVString"]
const webidlConvertersUnsignedShort = webidl.converters["unsigned short"];
Expand Down
Loading