Skip to content

JIT: keep tslang's cache on (pre-alpha94 fixed the multi-module crash) - #35

Merged
ASDAlexander77 merged 1 commit into
mainfrom
jit-cache-on
Oct 11, 2026
Merged

ASDAlexander77 merged 1 commit into
mainfrom
jit-cache-on

Conversation

@ASDAlexander77

Copy link
Copy Markdown
Owner

Summary

tslang pre-alpha93's JIT cache crashed any run that compiled two or more modules (TypeScriptCompiler#548). Every example imports core/input_pass.ts and, through it, core/donut.ts, so run_jit.bat passed --jit-cache=false.

pre-alpha94 fixes the crash (TypeScriptCompiler#549), so this removes the workaround. The README now explains where the cache lives (__jit next to each source, ignored by git) and when a module is compiled again: when it, a file it imports, its options or tslang change. The cache manifest rejects objects that another tslang compiled.

Verification with pre-alpha94

  • AOT build: all .ts objects deleted and rebuilt: 598/598 steps, no warnings. CTest: 57/57 pass.

  • JIT: cache on, starting from an empty cache, two runs per example. All passed both times. The second run loads from the cache:

    Example First run Cached run
    meshlet_render -dx12 -test 1.6 s 0.4 s
    denoised_rtao -dx12 -test 4.5 s 3.3 s
    memory_management -dx12 -test 2.1 s 1.2 s
    host_image_copy -vk -test 1.3 s 0.5 s
    headless -dx12 Test PASSED Test PASSED

🤖 Generated with Claude Code

pre-alpha93's JIT cache crashed any run that compiled two or more modules
(TypeScriptCompiler#548), so run_jit.bat passed --jit-cache=false.
pre-alpha94 fixes it (TypeScriptCompiler#549), so the workaround is gone.

Checked from an empty cache, two runs each:
- meshlet_render, denoised_rtao, memory_management (-dx12 -test) and
  host_image_copy (-vk -test) pass both times;
- the cached run is faster (meshlet_render 1.6 s -> 0.4 s).

The README says where the cache lives and when a module is compiled again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ASDAlexander77
ASDAlexander77 merged commit 3dc7fbb into main Oct 11, 2026
@ASDAlexander77
ASDAlexander77 deleted the jit-cache-on branch October 11, 2026 18:16
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