port(wasm): Coalesce identical host imports across objects - #2313
Conversation
|
Binaryen's Asyncify pass renames these |
|
Additionally, I'd like to share some performance metrics regarding link time performance. Below are the comparison results with wasm-ld. Note that, since Wild has not yet implemented section GC and debug information handling, I passed |
| needs_stack_pointer |= absorption.needs_stack_pointer; | ||
| needs_tls_base |= absorption.needs_tls_base; | ||
|
|
||
| function_import_count = function_import_count |
There was a problem hiding this comment.
Are unresolved_function_count and unresolved_global_count still needed?
There was a problem hiding this comment.
Didn't notice that, thanks.
Unresolved function and global imports are now merged by module/name so each unique host import appears once in the output. Previously each object that referenced the same import got its own import row.
Part of #1431