julia
0b9a8714 - JuliaLowering: Evaluate already-lowered thunks directly in `core_eval_hook` (#64530)

Commit
14 hours ago
JuliaLowering: Evaluate already-lowered thunks directly in `core_eval_hook` (#64530) With JuliaLowering active, every `Core.eval` goes through `core_eval_hook`, which converted its argument to a `SyntaxTree` and ran it through `rebase_layers` and `expand_forms_1` even when it was an already-lowered `Expr(:thunk, ::CodeInfo)`. This cost about 1.4 KB of allocations per call and made evaluating pre-lowered top-level code ~35% slower than with flisp active. Pass such thunks straight to `jl_toplevel_eval`, as the flisp hook does. Assisted-by: Claude Code (Opus 5.5)
Author
Parents
Loading