-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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(webidl): optimize dictionary converters #16594
Conversation
return new Function( | ||
"makeException", | ||
"type", | ||
"defaultValues", | ||
"allMembers", | ||
`return function (V, opts = {}) { |
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.
This will cause the process to fail if --disallow-code-generation-from-strings
flag is used (#16535)
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.
I wonder if there isn't anything that could be done to optimize these without running afoul of the eval issue.
If not, should this be closed?
Uhh this is a nice optimization. we need to somehow do this without JS eval :( Opened #18431 |
5x-11x improvement across inputs.
Before:
After: