Repository navigation
Commit 8939ccd
committed
[wasm-split] Precompute ownership info (NFC)
Given a module element name, many parts of the code queries for its
owning modules (where the module element has to be placed) or secondary
modules using that module element. This adds `OwnershipTracker`, which
precomputes and manages that information. All calls to `getOwner` or
`getUsingSecondaries` that required computations iterating on all
secondary modules which can be as many as thousands, has been replaced
with a call that simply returns prcomputed information.
For the Jul 2026 version of the applications received from the Dart
team, this reduces the running time of wasm-split by 17% for acx_gallery
(30s -> 25s) and by 33% for essentials (230s -> 153s).
Suggested in
#8832 (comment).1 parent efe5df1 commit 8939ccd
1 file changed
Lines changed: 206 additions & 118 deletions
0 commit comments