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

Improves the utf8 decoder performance #1140

Merged
merged 1 commit into from
May 9, 2023

Conversation

Dig-Doug
Copy link
Contributor

When parsing large wasm files, the decode function is very slow. You can reproduce the performance issues with the information in webpack/webpack#17044. This change refactors the recursive algorithm to an iterative version that should have the exact same behavior with significantly better performance.

@xtuc
Copy link
Owner

xtuc commented May 9, 2023

Thanks for the PR @Dig-Doug . For the record and since the CI is broken, the tests pass locally with your changes.

@xtuc xtuc merged commit 6a71e8f into xtuc:master May 9, 2023
@xtuc
Copy link
Owner

xtuc commented May 9, 2023

Released in 1.11.6.

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