Skip to content

[wasm-split] Don't use ParallelFunctionAnalysis in scanModule - #9007

Open
aheejin wants to merge 1 commit into
mainfrom
wasm_split_no_parallel
Open

[wasm-split] Don't use ParallelFunctionAnalysis in scanModule#9007
aheejin wants to merge 1 commit into
mainfrom
wasm_split_no_parallel

Conversation

@aheejin

@aheejin aheejin commented Aug 15, 2026

Copy link
Copy Markdown
Member

This removes the use of ParallelFunctionAnalysis within scanModule (in computeUsedNames), which scans UsedNames for each module.

I'm not 100% sure why but this improves running time at least for Dart applications. I also previously tried to use ParallelFunctionAnalysis in other functions but it resulted in slowdown so didn't do it. Maybe cache locality works against the parallelism.

This reduces running time of acx_gallery (Jul 2026) by 7.8% (30.6s -> 28.2s) essentials by 4.2% (225.1s -> 215.6s).

This removes the use of `ParallelFunctionAnalysis` within `scanModule`
(in `computeUsedNames`), which scans `UsedNames` for each module.

I'm not 100% sure why but this improves running time at least for Dart
applications. I also previously tried to use `ParallelFunctionAnalysis`
in other functions but it resulted in slowdown so didn't do it. Maybe
cache locality works against the parallelism.

This reduces running time of acx_gallery (Jul 2026) by 7.8% (30.6s ->
28.2s) essentials by 4.2% (225.1s -> 215.6s).
@aheejin
aheejin requested a review from tlively August 15, 2026 03:10
@aheejin
aheejin requested a review from a team as a code owner August 15, 2026 03:10
@aheejin aheejin changed the title [wasm-split] Don't use ParallelFunctionAnalysis for scanModule [wasm-split] Don't use ParallelFunctionAnalysis in scanModule Aug 15, 2026
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.

1 participant