Warm cache hits used to validate bytecode cache blobs on the main thread. Route script and module sidecars through a worker step that decodes and validates the cache blob, then returns the validated blob for main-thread materialization. Keep the source bytes mmap-backed and avoid decoding the full source on cache hits. The main thread still computes the UTF-16 source length so validation can reject stale blobs before materialization. Remove the decoded source length getter now that sidecar validation uses the explicit validation API instead. |
||
|---|---|---|
| .. | ||
| src | ||
| build.rs | ||
| Cargo.toml | ||
| cbindgen.toml | ||