github.com
perf: split `Core.Context` into hot and cold subobjects by Kha · Pull Request #14962 · leanprover/lean4
-0.5% instrs, -1.3/1.8% wall-clock core/Mathlib withReader can never reuse the Context record as the caller is owning a reference, so every withRef, withOptions or withIncRecDepth pays one referenc...