Skip to content

perf: use unordered containers for Name sets in SimplifyLocals and DuplicateFunctionElimination#8600

Merged
kripken merged 1 commit intoWebAssembly:mainfrom
Changqing-JING:opt/compile-speed-2
Apr 14, 2026
Merged

perf: use unordered containers for Name sets in SimplifyLocals and DuplicateFunctionElimination#8600
kripken merged 1 commit intoWebAssembly:mainfrom
Changqing-JING:opt/compile-speed-2

Conversation

@Changqing-JING
Copy link
Copy Markdown
Contributor

@Changqing-JING Changqing-JING commented Apr 14, 2026

This PR is proposed by #8586 (comment)

Benchmark result shows the benefit is very limited. But since the change is also very small, I would say better than nothing.

@Changqing-JING Changqing-JING requested a review from a team as a code owner April 14, 2026 05:01
@Changqing-JING Changqing-JING requested review from aheejin and removed request for a team April 14, 2026 05:01
@Changqing-JING Changqing-JING marked this pull request as draft April 14, 2026 05:01
@Changqing-JING Changqing-JING marked this pull request as ready for review April 14, 2026 09:17
Copy link
Copy Markdown
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a 0.7% benefit on CPU instructions and branches locally, so yes, this is a small benefit, but worthwhile.

@kripken kripken merged commit fc43f0d into WebAssembly:main Apr 14, 2026
16 checks passed
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