Kevin Newton
90d · built 2026-11-30
Performance
What Kevin Newton shipped in the selected window, measured in ETV, and how it compares with the 90 days before it.
Effective capacity
+1.5engineers
delivers like 2.5 (2.5x pre-AI)
Output (ETV)
19.9ETV
+174.8% vs 7.2 prior
Features share
23.2%
−24.0 pp vs prior window
Fixes share
9.4%
+1.0 pp vs prior window
Work mix
23.2% Features32% Maintenance35% Tests0.5% Docs9.4% Fixes
144 commits over 90 days, ending 2026-11-30.
Daily performance
Daily ETV, stacked by Features, Maintenance, Tests, Docs and Fixes.
Repository spread
Where this developer's commits land. Concentrated work (top1 > 80%) vs polymath spread (top1 < 30%).
Most impactful commits
Top 10 by ETV in the last 90 days.
- 1.1ETVQueue background recompiles from `checkRecompile` Summary: Okay so now we're going to actually call the background compilation when we hit the threshold. If a background compilation is already done and there's a newly published version, then on that call we will adopt the new version. Note that we will still complete the old version at this point to keep things simple. Reviewed By: DinoV Differential Revision: D125457338 fbshipit-source-id: 6ddc7b58b30d5af725f616de4310d1ee22e5f660github.com-facebookincubator-cinderx · 7ad3fb20 · 2026-11-05
- 0.9ETVAdd entry counters and a cold `checkRecompile` hook Summary: Okay this is a big one. This adds a `recompile_threshold`, configured through `-X cinderx-jit-recompile-threshold` or `CINDERX_JIT_RECOMPILE_THRESHOLD`, with a default of zero. Zero turns it off. When it's on, it adds a counter to the tier1 compilatons. When the counter hits the threshold, it requests a recompilation. Note that this diff just triggers calling the function, but not actually doing anything with it. Reviewed By: DinoV Differential Revision: D125457336 fbshipit-source-id: 2c1dd1f73b88e6bc6dc0938e462f4432754c2b17github.com-facebookincubator-cinderx · 47fa0871 · 2026-11-05
- 0.7ETVPreserve deferred compilation data until stack cleanup Summary: When a function has deopted and we've handed the frame back to the interpreter, we no longer have the `visited` bit set, but we need the associated metadata to stick around for when we return from the deopt. In theory this should be a rare case, but if the GC runs during that time it's not going to see the active frame with the `visited` bit set so it might think those functions are dead. To keep those things around, we incref the compiled function data until it can be cleaned up. Note that we can't free things immediately when we would otherwise decref because we still have to keep the code around because the native frame is still on the stack even after we call `resumeInInterpreter` (it still has to go back through the native frame). Reviewed By: DinoV Differential Revision: D125457331 fbshipit-source-id: 03f431221f3016a793bd8ff34d5e049a1535987dgithub.com-facebookincubator-cinderx · d7d0da40 · 2026-11-05
- 0.6ETVPreserve runtime resources until retired native frames return Summary: A JIT-compiled function can be cleared while earlier calls to it are still running. For example, the innermost recursive call can disable compilation while the outer calls still need the generated code and its runtime state. Previously, `CompiledFunction::clear()` kept the machine code alive but removed its type and function invalidation watches. It also moved Python references out of `CodeRuntime` into a list that GC could clear before those calls returned. Keep the references and watches with the machine code in `CompiledFunctionData`. `CompiledFunction::clear()` removes the compilation from the context's lookup tables and defers its data. Once no JIT frame uses the compilation, cleanup can release that data; `releaseRuntimeResources()` then removes the watches and releases the references. Repeated `clear()` calls leave the deferred data intact. Reviewed By: DinoV Differential Revision: D127907357 fbshipit-source-id: 81ef8beeaf9c9d92b262720852c5a8650501dce3github.com-facebookincubator-cinderx · b9f36006 · 2026-11-02
- 0.6ETVSpeed up linear scan with allocator-local vreg IDs Summary: Assign a dense allocator-local ID to each virtual register and use ID-indexed vectors for live intervals, physical-register uses, last uses, global last uses, and spill slots. Keep one definition-pointer-to-ID map at the LIR boundary instead of keying allocator state by operand pointers throughout every phase. Separate fixed physical-register intervals and uses from virtual-register state. Preserve virtual-register IDs across interval splits and use them for liveness, rewrite mappings, edge resolution, and deterministic queue ordering. Initialize IDs from active instruction outputs, relying on the parent cleanup to ensure active inputs no longer reference definitions in pruned blocks. This reduces hash-table nodes and ordered-set allocations while keeping register-allocation metadata local to the allocator rather than adding pass-specific fields to LIR operands. Reviewed By: alexmalyshev Differential Revision: D117556847 fbshipit-source-id: 3be3d1e86e5a8887d3ddf346c8ad083e1e391c73github.com-facebookincubator-cinderx · 637b949a · 2026-09-14
- 0.5ETVPass explicit state through scheduling and compilation Summary: Add state-taking `scheduleJitCompile()`, `compileFunction()`, and `preloadFuncAndDeps()` APIs. Native force/lazy compile, auto-JIT threshold, JIT-list rescheduling, and initialization callers pass their owning state. Runtime callbacks retain compatibility entry points, which resolve state at the boundary and retain a live module owner while borrowing it. Avoid resurrecting the module during teardown and release scheduling's owner reference outside the JIT entry guard. Pass explicit context and JIT-list dependencies through nested-code tracking and eligibility checks. Add JIT-list-taking eligibility APIs; existing compatibility overloads still check global context availability. Use the supplied state's allocator at compilation and scheduling boundaries. Keep context re-resolution at the existing boundaries around Python preloading and preserve GC traversal and snapshot validation. Preserve compilation policy, compiler inputs, transformations, generated code ABI, admission, locking, argument validation, and error handling. No tests added. Reviewed By: DinoV Differential Revision: D128411681 fbshipit-source-id: a54ffe383d82384109b051ab4f119b0fc797abeagithub.com-facebookincubator-cinderx · 189eb3dc · 2026-11-17
- 0.5ETVAllocate CodeRuntime in stable compilation storage Summary: There are 2 ways to allocate inline caches, depending on prefork or not. Under prefork we put them all on a slab on Context. Without prefork we put them in an arena on the CompiledFunctionData. This diff extends that to CodeRuntime, which is per-compiled generation as well. Reviewed By: alexmalyshev Differential Revision: D121816809 fbshipit-source-id: 9e32c3c826ad84a90acda26971907d324c710517github.com-facebookincubator-cinderx · f00fbf59 · 2026-09-30
- 0.5ETVLower C variadic calls with platform ABIs Summary: Introduce `CVarArgCall`, which records the number of fixed C arguments until post-register-allocation lowering. Treat it as a call throughout register allocation, spill handling, post-generation rewrites, and code generation. Lower variadic calls according to each supported ABI: place unnamed Apple arm64 arguments on the stack, set `AL` to the vector-register count on SysV x86-64, and duplicate Windows x64 floating-point register arguments into their matching integer registers. Account for the resulting outgoing stack area in test compilation frames. Use the new operation for `PyErr_Format` calls emitted by cast helper inlining and `RaiseStatic`. This removes the macOS-wide helper-inlining disable while preserving correct argument passing. Reviewed By: DinoV, alexmalyshev Differential Revision: D119996593 fbshipit-source-id: e5ef58d97891ec49e33bb412131bdac11ef8e8dcgithub.com-facebookincubator-cinderx · f1ec889d · 2026-09-15
- 0.4ETVStop JIT compilation before interpreter teardown Summary: The native atexit hook previously drained background compilation but left the JIT marked as running. Python finalizers could then start foreground compilation after CPython had destroyed objects that preloading needs, causing a shutdown crash. This wasn't a problem until we merged the native extensions, because now _cinderx stays alive. So instead, split shutdown into two stages: - At atexit, `beginShutdown()` marks the JIT as `kFinalizing`, waits for batch workers, and stops and drains background compilation. Keep compiled code and runtime resources alive because existing frames and suspended generators can still need them. - When `_cinderx` is destroyed, `finalize()` performs the existing deoptimization and resource cleanup. Make compilation, cached-code attachment, re-enabling, and configuration paths respect shutdown. Recheck availability after preloading because preloading can execute Python and shutdown can begin during it. Also check `Py_IsFinalizing()` so compilation is refused if interpreter shutdown starts without the native atexit hook running. Release the GIL while joining batch workers so they can acquire it to finish. Serialize worker creation and joins with a dedicated mutex because the batch caller and shutdown hook can access the same workers concurrently. After fork, reset that mutex and discard inherited worker handles: those threads do not exist in the child. Use one worker mutex for creation, joining, and clearing, and recheck JIT availability after acquiring it. Detach the coordinator while waiting for that mutex so workers and stop-the-world pauses can make progress. If thread creation fails, drain started workers and finalize completed and queued work before propagating the original error. Access lifecycle state atomically so shutdown checks do not race with state transitions in free-threaded builds. Reviewed By: DinoV Differential Revision: D129697410 fbshipit-source-id: fe7f4a29b27054972a84586df5e863d85396fe61github.com-facebookincubator-cinderx · 598e4e2c · 2026-11-05
- 0.4ETVBuild generated LIR phis by edge Summary: Keep each `IncomingEdge` returned while connecting normal branches, returns, yields, and the generator exit. Use those values to fill phi slots instead of adding label/value pairs directly. Regular phi inputs can now be filled in any order. Reviewed By: DinoV Differential Revision: D117556834 fbshipit-source-id: 7e64f62d2cfbdc0abf69f7b90d32d1d1583a850cgithub.com-facebookincubator-cinderx · f43cb260 · 2026-09-10