Skip to content

[NFC] Use a bitset instead of bools in effects.h#8402

Open
tlively wants to merge 2 commits intomainfrom
effects-bitfields
Open

[NFC] Use a bitset instead of bools in effects.h#8402
tlively wants to merge 2 commits intomainfrom
effects-bitfields

Conversation

@tlively
Copy link
Member

@tlively tlively commented Feb 28, 2026

EffectAnalyzer tracks many effects that are just bools. Update it to use
bits in a uint32_t instead. This not only makes EffectAnalyzer smaller
now, but also allows us to add more effects in the future without making
it larger. This change does not appear to have a meaningful effect on
the performance of -O3 on large Wasm GC binaries, though.

EffectAnalyzer tracks many effects that are just bools. Update it to use
bits in a uint32_t instead. This not only makes EffectAnalyzer smaller
now, but also allows us to add more effects in the future without making
it larger. This change does not appear to have a meaningful effect on
the performance of -O3 on large Wasm GC binaries, though.
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