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

pipe: fix v8 performance cliff for >10 case stmts #1585

Merged

Conversation

pbadenski
Copy link
Contributor

V8 has a performance cliff when there's more than 10 case blocks in a switch
statement. This fix reduces the number of fast specialised case statements
to 9 + extra one for general case.

More details here: https://groups.google.com/g/v8-users/c/_Add2xOVmfU/m/IQHh2IAVBAAJ

Fixes: #1507

V8 has a performance cliff when there's more than 10 case blocks in a switch
statement. This fix reduces the number of fast specialised case statements
to 9 + extra one for general case.

More details here: https://groups.google.com/g/v8-users/c/_Add2xOVmfU/m/IQHh2IAVBAAJ

Fixes: gcanti#1507
@gcanti gcanti merged commit 295ea40 into gcanti:master Sep 21, 2021
@gcanti
Copy link
Owner

gcanti commented Sep 21, 2021

Thanks @pbadenski, released

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.

Reduce the supported number of arguments to pipe function
2 participants