Skip to content

[wasm-split] Deduplicate loops in shareImportableItems (NFC) - #8992

Open
aheejin wants to merge 2 commits into
wasm_split_remove_optfrom
wasm_split_dedup_loops
Open

[wasm-split] Deduplicate loops in shareImportableItems (NFC)#8992
aheejin wants to merge 2 commits into
wasm_split_remove_optfrom
wasm_split_dedup_loops

Conversation

@aheejin

@aheejin aheejin commented Aug 12, 2026

Copy link
Copy Markdown
Member

We have six mostly identical loops in shareImportableItems, each for memories, tables, globals, tags, data segments, and element segments. This factors the core logic out as a generic lambda function.

We have six mostly identical loops in `shareImportableItems`, each for
memories, tables, globals, tags, data segments, and element segments.
This factors the core logic out as a generic lambda function.
@aheejin
aheejin requested a review from tlively August 12, 2026 16:29
@aheejin
aheejin requested a review from a team as a code owner August 12, 2026 16:29

@tlively tlively left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice! LGTM once the preliminaries land.

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