cinderx — Engineering Performance
20 engineers all time · Jan 2025 – Nov 2026 · built 2026-11-30 · GitHub
Performance snapshot
Today's rolling 90-day reading for cinderx, compared with the start of the series. Pick a window to move that comparison point.
Avg. perf / dev / mo
+109.9%
1.47 → 3.09 ETV
Active engineers
+83.3%
6.0 → 11.0
Features
+0.7pp
26.3% → 27.0%
vs. Meta
0.89x
2.0x → 0.89x · −11% below
cinderx vs. Meta
Per-engineer ETV for cinderx against Meta as a whole. Both lines are 90-day rolling averages scaled to a 30-day month, so they share one axis and can be read against each other at any point. Pick a window to zoom the chart to it.
Performance Composition
Each month's output split by type of work: Features (new value), Maintenance (sustaining systems), Tests, Docs, and Fixes (rework). The yellow line is output per engineer, so when it rises each engineer is delivering more, whatever the team size did. Unit: Engineering Throughput Value (ETV).
Engineering capacity
Effective engineers behind cinderx, against its pre-AI baseline. Each subject has its own: cinderx's is 1.47 ETV / dev / mo, its first reading in Q1 2025. Per-engineer ETV divided by that gives a capacity multiple, and that multiple applied to the engineers active in the trailing 90 days turns it into engineer-equivalents. The line is the real headcount, so the gap between line and area is what the leverage is worth. Because each baseline is its own, every subject opens at 1.0x on its first day: multiples measure improvement and are not comparable between subjects.
Knowledge concentration
How dependent is this repo on a small number of engineers? Higher top-1 share = higher key-person risk.
Dino Viehland owns 35.6 % of commits.
Behind the numbers
Written summary of the work completed each month.
No monthly reports available yet.
Top engineers
Most impactful commits
Top 10 by ETV in the all-time window.
- 13.4ETVAdd a whole bunch of `None` return types to Python tests Summary: Adding the easy ones that don't trigger further pyre errors. This is one of most common gaps in Pyre coverage. Reviewed By: martindemello Differential Revision: D79563390 fbshipit-source-id: fa5a31cc4a2322c95f91f9328ec5caa43f047cb1Alex Malyshev · be0dd600 · 2025-08-06
- 2.1ETVMove more test_static/ files to pyre-strict [2/N] Summary: These are more involved and often need pyre-ignores, unfortunately. Reviewed By: brittanyrey, yoney Differential Revision: D79921354 fbshipit-source-id: e7c1fb5956500e8f8a30f934dc8ceb897c980952Alex Malyshev · 605d7ab9 · 2025-08-11
- 1.6ETVTest the LIR ABI Summary: LIR has an implicit ABI where some instruction accept some operands in some combination. It's documented loosely through the auto translator layer, by virtue of the string pattern matching. This diff tests each valid combination of operands for each instruction (including the variants within those combinations like the three different kinds of mem operands). Reviewed By: alexmalyshev Differential Revision: D86535075 fbshipit-source-id: 81218addac9326598063a6b17392611412a28dd4Kevin Newton · 64ab095d · 2025-11-13
- 1.6ETVAdd support for ABI-native calls between JIT-compiled functions Summary: This adds ABI-native calls between ordinary, non-Static-Python JIT-compiled functions. Eligible calls are `VectorCall` instructions with a Python function known at compile time, a simple positional signature, an exact argument count, and enough argument registers for the callable plus all arguments. Argument values need not be constants. The optimization is enabled by default outside the prefork model. Disable it with `CINDERX_JIT_TO_JIT_CALLS=0` or `-X cinderx-jit-to-jit-calls=0`. It remains disabled on macOS, where live code patching needs a separate W^X strategy. Eligible callees get a dedicated register entry with a leading patchable NOP. The offset is derived from the Static Python entry offset, including the Windows reentry layout. Link/relink trampolines use the existing deferred-compile register-spill wrapper and its `StaticCallReturn` ABI. Call sites initially dispatch through the link trampoline; reachable, current compiled callees can then be called directly. Far-link/relink veneers keep fallback branches in range. Each site records its address and the caller's argument count. The shim forwards using that count, not the callee's mutable signature. Direct linking validates the current vectorcall entry, compilation code, positional signature, argument count, and retired/diverted state. Code changes, deoptimization, recompilation, and removal divert the old entry before callers can reuse it. Link-time lookup, reverse-edge recording, and patching are serialized in free-threaded builds; forwarding happens after releasing that guard. Patches use aligned atomic stores on free-threaded x86-64 and AArch64. A shared code-owner registry records the actual owning context, including isolated compiler contexts. Reverse caller/callee edges allow stale-code relinking to scale with callers rather than the entire code fleet. Stack cleanup batches code that will actually be freed; data retained by a suspended generator or another owner is detached on its eventual resource-release path. Those paths stop the world before unlinking and freeing code, without introducing extra GC-invisible retention roots. Context teardown detaches its entries and reverts incoming sites while code is still allocated. Standalone native generators opt out of native sites because they do not publish registered compiled-function data. Reviewed By: DinoV Differential Revision: D109612990 fbshipit-source-id: aff884f3d3303d8465609ba91721b643853a728aMatt Page · 9dfc6943 · 2026-11-16
- 1.6ETVAdd a top-level cinderx namespace Summary: I recently hit conflicts between changes I was making in cinderx/Common and asmjit. Figured it was time to finally add a proper top-level namespace to the project. Having top-level, un-namespaced C++ code will always lead to conflicts. Some things that were in cinderx/Common used to have a top-level jit:: namespace. Most of them aren't really JIT-related, so I moved them to just cinderx:: instead. But stuff like the tagged PyObject bits are in cinderx::jit. Another alternative I could have taken is to just rename `jit::` to `cinderx::`. I don't think that makes sense because we do have a distinction between JIT definitions (e.g. `cinderx::jit::Context`) and non-JIT definitions (e.g. `cinderx::funcFullName()`). Generally items in cinderx/Common shouldn't have the jit:: namespace. This does highlight some odd definitions, e.g. `cinderx::jit::Config` should really be `cinderx::Config`. We can tackle those one-by-one afterwards. Reviewed By: DinoV Differential Revision: D109513382 fbshipit-source-id: 43d1d34fef468450161419fc12ca4be4958cf17eAlex Malyshev · c33f677e · 2026-06-25
- 1.6ETVEnable GC to scan deferred RC values in JIT frames Summary: Note we still don't have any actual deferred RC values. These will come in the next change. Primary features in this diff are: * We now make use of the deferred RC scanning hook we added to MetaPython in the previous change (see `visitJitDeferredRefs()` in `frame.cpp`). * We've added the ability to attach live values data to HIR instructions which don't already have `DeoptBase`. For now these are only needed for decref-related operations which we explicitly never handled the failure modes for these (I guess?) and so did not support deopt. We need to have the live values for these so we can make any deferred RC values visible to the GC should deallocation during decref end up escaping into arbitrary Python code. At the LIR level, we introduce a new virtual `CallsiteLiveValueMetadata` instruction which produces no code, but pairs up with `Call` instructions in decrefs to reference their live values. * The register allocator is now forced to spill callee-saved registers when processing `Call`s to functions with arbitrary code execution. This means we can always access live values from known locations if the GC is triggered. Note we technically can still load the data back from callee-saved registers (rather than the spill data) although that's a bit more complicated and the implementation is in another diff: D106468272. * Note this revealed an issue with interactions between the register allocator and the tagged arg stripping from the diff below. This is a real bug that needs fixing regardless and this is where the changes in `postgen.cpp` come from. Reviewed By: DinoV Differential Revision: D102409175 fbshipit-source-id: aac3bcf9d61869b34628735d16f8223bae6cd033Jacob Bower · 986952d4 · 2026-06-05
- 1.5ETVFlatten `OperandBase`/`Operand`/`LinkedOperand` into a single `Operand` class Summary: The real money is in operand.cpp, everything else is basically a find-replace. The LIR used a three-class hierarchy (`OperandBase` -> `Operand` / `LinkedOperand`) to represent SSA def-use chains. `LinkedOperand` was a thin proxy with one field (`Operand* def_opnd_`) whose entire implementation was 12 virtual methods that each delegated to `def_opnd_->sameMethod()`. This virtual dispatch was unnecessary — the linked-vs-owned distinction is now a runtime check on a pointer field in a single concrete class. The merged `Operand` class adds a `def_opnd_` pointer. When non-null (`isLinked()` returns true), getter methods delegate through it. A `LinkedTag` tag type disambiguates the linked constructor: `Operand(parent, def, Operand::kLinked)`. This is temporary, I'm going to move it into the variant next. A `using OperandBase = Operand` alias is kept temporarily so that files not directly involved in the refactor (autogen, generator, tests) continue to compile without changes. A follow-up commit removes the alias. This also fixes two pre-existing bugs: - `regalloc.cpp`: `index_last_use` was checking `base->isLinked()` and `last_use_vregs->count(base)` instead of `index`. Fixed to use the correct variable. - `allocateLinkedInput(nullptr)` previously called `nullptr->output()` (undefined behavior). The new linked constructor handles nullptr gracefully. Reviewed By: alexmalyshev Differential Revision: D105867984 fbshipit-source-id: 25e53bd0aa11ec6bc799c4f81561d5833a816f02Kevin Newton · ab96a962 · 2026-05-29
- 1.5ETVRemove the `TempAllocator` from `HIRBuilder` Summary: We must have the same stack layout (which registers are in which stack slots) at control flow merge points to correctly translate between CPython's stack-based bytecode and our register-based IR. Preserving this invariant was previously split across two classes: `TempAllocator` and `BlockCanonicalizer`. `TempAllocator` held the canonical stack layout in its `_cache` member and provided methods (`AllocateStack` and `GetOrAllocateStack`) for manipulating the layout. `BlockCanonicalizer` inserted register moves at block exit to put the stack into canonical form. It's unsafe for a register that occupies a canonical stack slot to alias a local or a cell: a register move might inadvertently overwrite the the aliased local/cell. `TempAllocator` provided `AllocateNonStack` as a means of allocating registers that would never be used in stack slots. However, this is a foot-gun: it forces callers to know when to choose between `AllocateStack` and `AllocateNonStack`. This diff eliminates the foot-gun while preserving the function-wide canonical stack layout: - The layout now lives on its consumer, `BlockCanonicalizer`. These registers are fully disjoint from those allocated by the rest of `HIRBuilder`, making them safe to overwrite. - `BlockCanonicalizer` is now a member of `HIRBuilder` and is reused across all blocks, preserving the per function canonical layout. - `TempAllocator` is removed, elminating the foot-gun. Reviewed By: alexmalyshev Differential Revision: D109868165 fbshipit-source-id: a35ac66b7f277f8e8a07827b69dd521f4fd628c4Matt Page · 417ff451 · 2026-06-30
- 1.4ETVFix remaining ref counting issues w/ background compile Summary: We have some ref count manipulation that's still happening during multi-threaded compile. We need to make it so that we always flow a strong reference down that can potentially be handed off to the JIT context but also potentially not hand it off and release it later when the GIL is re-acquired. Reviewed By: alexmalyshev Differential Revision: D114798976 fbshipit-source-id: 605aac5176dc001a7bf5d297ddb188927ed682efDino Viehland · 027e8edf · 2026-08-06
- 1.4ETVCreate cinderx::jit::rt namespace for jit_rt.h Summary: These are all C++ symbols, we shouldn't need to use the manual `JITRT_` prefix everywhere. I moved and renamed `cx_load_cell_item` and `cx_swap_cell_item` to make them more C-like. Reviewed By: yoney Differential Revision: D109701376 fbshipit-source-id: a248d927e4b58eed524479a889f2bdcea8264e23Alex Malyshev · 14074dfe · 2026-06-26