-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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(ext/fetch): skip USVString webidl conv on string constructor #12168
Conversation
Since URL parsing will effectively normalize it, this is essentially another redundant webidl conversion Assumes denoland#12167
The conversion to |
Yeah the alternative patch was to use |
…ctor" This reverts commit f42e996.
Since it it is implicitly handled by `new URL(...)`
@andreubotella Please take another look |
To disambiguate and hint that it normalizes to DOMString instead of USVString since DOMString => USVString is handled by `op_url_parse` when calling `new URL(...)`
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
…noland#12168) * perf(ext/fetch): skip USVString webidl conv on string constructor * Rename webidl convert to RequestInfo_DOMString To disambiguate and hint that it normalizes to DOMString instead of USVString since DOMString => USVString is handled by `op_url_parse` when calling `new URL(...)`
Since URL parsing will effectively normalize it, this is essentially another redundant webidl conversion
Assumes #12167