Buffer Wasm metadata reads

This commit is contained in:
udo
2026-07-19 06:43:19 +00:00
parent a9e24cffc4
commit 15fdfe725d
6 changed files with 182 additions and 40 deletions
+6 -2
View File
@@ -243,8 +243,12 @@ check. Exact repeated load paths are then deduplicated before canonicalization,
while distinct aliases are resolved independently so symlink retargets remain
visible by the next hard validation.
When a current serialized module exists, the worker scans wasm section headers
and reads only `dylink.0`, `uce.abi`, and the tiny `uce.module` identity; it does
not fault the code and data bodies into every new worker. A missing/stale/invalid serialized module
through a bounded 4 KiB positional buffer and retains only `dylink.0`, `uce.abi`,
and the tiny `uce.module` identity. It skips code and data bodies rather than
issuing byte-at-a-time reads or faulting those bodies into every new worker.
The request profile reports the physical read-ahead bytes and positional read
count. Initial and final descriptor identity checks reject an artifact changed
during the scan. A missing/stale/invalid serialized module
still reads, validates, compiles, and republishes the complete wasm artifact.
The proactive compiler also creates that serialization immediately after source
compilation, keeping first-worker native compilation off the request path.