Commit 2ed6471
perf(native_engine): hash model version tag on a background thread at load
Hotspot #4: sha256 over a 1.6GB model file cost 3.0s synchronously at
raw_output build. Now warmed on a spawned thread at load; OnceLock blocks
any early caller. Isomorphism: same tag value, same outputs (golden OK).
Measured: version_tag span 3044ms -> 0.0ms.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cf3ec1c commit 2ed6471
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
489 | 505 | | |
490 | 506 | | |
491 | 507 | | |
| |||
0 commit comments