Skip to content

wasm: don't memoize single-use rules (incl. inline rules)#559

Merged
pdubroy merged 2 commits intomainfrom
pdubroy/wasm-singleUseRules
Feb 19, 2026
Merged

wasm: don't memoize single-use rules (incl. inline rules)#559
pdubroy merged 2 commits intomainfrom
pdubroy/wasm-singleUseRules

Conversation

@pdubroy
Copy link
Contributor

@pdubroy pdubroy commented Feb 19, 2026

node scripts/parseLiquid.js '/Users/pdubroy/dev/third_party/Shopify/dawn/**/*.liquid'

Before After
JS total: 2301ms
Wasm total: 137ms
Speedup: 16.80x
Peak JS heap delta: 256.42 MB
Peak Wasm heap usage: 30.76 MB
Peak Wasm linear memory: 34.00 MB
JS total: 2301ms
Wasm total: 133ms
Speedup: 17.30x
Peak JS heap delta: 211.98 MB
Peak Wasm heap usage: 19.37 MB
Peak Wasm linear memory: 24.00 MB

bin/es5bench-wasm

Before After
Compile: 79ms
Match (JS): 3308ms, 1088.9MB
Match (Wasm): 215ms, 464.5MB
Speedup: 15.4x
Compile: 77ms
Match (JS): 3238ms, 1089.1MB
Match (Wasm): 186ms, 326.0MB
Speedup: 17.5x

@pdubroy pdubroy merged commit 0680d0e into main Feb 19, 2026
0 of 3 checks passed
@pdubroy pdubroy deleted the pdubroy/wasm-singleUseRules branch February 19, 2026 09:02
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