Backtest / #1258
perf: add __slots__ to token classes
PASS
No behaviour divergence found by any probe.
† Merged after Nemotron 3 Ultra was released (2026-06-04): the model cannot have seen this PR or its fixes.
Performance · Requirement
No realistic input family measured slower.
Measured in backtest packaging-v2 (same commits, run bt-1258-a58f0c, image bw-pair:aa205a50cfdfbeb7). The semantic results above are from a later run; perf doesn't use the semantic planner, so it was not re-measured.
- F1
| Family | Inputs | Ratio range | Slope base → head | Verdict |
|---|---|---|---|---|
F1 | requirement strings with a large number of extra markers (extras), which produce many Token objects during tokenization; the added __slots__ on Token reduces per‑token memory and attribute‑access cost, so this path should become faster.claimed speedup · plan | 0.97× – 0.99× | 0.87 → 0.87 | neutral |
Receipt
| Target | Backend | Image | Run | Audit | Adjudication |
|---|---|---|---|---|---|
packaging.requirements:Requirement | local Docker | bw-pair:bc22d3399fde3139 | bt-1258-40f7e2 | $0.010 | $0.000 |
Nemotron cost on Nebius Token Factory. Backend: where the untrusted code ran. local Docker (an image cited by its content-addressed tag). Every image is content-addressed (repo at each commit + harness), so every card re-runs from the image and seed 0. Raw data: audit.