Skip to content

Jit strategy#363

Merged
giann merged 5 commits into
mainfrom
jit-strategy
May 15, 2026
Merged

Jit strategy#363
giann merged 5 commits into
mainfrom
jit-strategy

Conversation

@giann
Copy link
Copy Markdown
Member

@giann giann commented May 15, 2026

No description provided.

giann added 3 commits May 14, 2026 22:44
… job

Worker thread does not set compiled function pointers into closure to avoid VM running half compiled batch of functions
Lazy JIT compilation in bz_context now either synchronously compile the collateral
function or falls back to calling interpreted function with JIT compiler is already
busy or if the function can't be compiled (this was not handled before).
@giann giann force-pushed the jit-strategy branch 2 times, most recently from aa23fa6 to 21705b0 Compare May 15, 2026 22:04
Gives a rundown like this:

```
Performance
Total elapsed: 472.094ms

VM         471.314ms  99% ━━━━━━━━━━━━━━━━━━━━━━━─  includes: GC 137.792ms, Native 163us
GC         137.792ms  29% ━━━━━━━─────────────────
JIT          2.719ms   0% ────────────────────────
Parser         468us   0% ────────────────────────  includes: Scanner 17us
Native         163us   0% ────────────────────────
Codegen         70us   0% ────────────────────────
File I/O        37us   0% ────────────────────────
Scanner         17us   0% ────────────────────────
```
@giann giann merged commit 68fbc03 into main May 15, 2026
26 checks passed
@giann giann deleted the jit-strategy branch May 15, 2026 22:27
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