Skip to content

fix(web): expose combined export methods on wrapper module - #76

Merged
gugu23456789 merged 1 commit into
mainfrom
feature/spz-gatekeeper-combined-export-fix
Aug 2, 2026
Merged

fix(web): expose combined export methods on wrapper module#76
gugu23456789 merged 1 commit into
mainfrom
feature/spz-gatekeeper-combined-export-fix

Conversation

@gugu23456789

Copy link
Copy Markdown
Member

createSpzGatekeeperModule never forwarded inspectSpzWithCompatPtr / inspectCompatSummaryPtr. index.html's feature check (typeof wasmModule.inspectSpzWithCompatPtr === 'function') therefore failed and every 25MB v3 inspection ran the fallback path: inspectSpzPtr (full decompress) + inspectCompatSummary (full decompress) = 2 complete 31MB gunzips per review. That doubled the real ~400ms cost to ~800ms and left wasm_perf null.

Forward both zero-copy methods so index.html uses the single-pass combined export.

createSpzGatekeeperModule never forwarded inspectSpzWithCompatPtr /
inspectCompatSummaryPtr. index.html's feature check
(typeof wasmModule.inspectSpzWithCompatPtr === 'function') therefore
failed and every 25MB v3 inspection ran the fallback path:
inspectSpzPtr (full decompress) + inspectCompatSummary (full decompress)
= 2 complete 31MB gunzips per review. That doubled the ~400ms real
cost to ~800ms and left wasm_perf null (combined export never called).

Forward both zero-copy methods so index.html uses the single-pass
combined export (wasm_perf diagnostic becomes populated too).
@gugu23456789
gugu23456789 merged commit fb718b8 into main Aug 2, 2026
7 checks passed
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