Atelier des rouesLab FR
Register/AT.EX31.06
Controlled experiment · AT.EX31.06

Testing a memory correction on a second Python

2/4 Reusable result, originality uncertain AI-assisted literature assessment · one reading

I give a counterexample to carrying the earlier correction across Python installations: in Python 3.11.7, the six corrected errors are roughly −10 to −12 KB, unlike the earlier near-zero results. SCALENE measures allocation footprint directly, not portability of a learned offset. The observation supports version-specific recalibration before sizing this workload, but tests only one second installation and cannot separate version effects from other environment differences.

Triangulating Python Performance Issues with SCALENE — Emery D. Berger, Sam Stern, Juan Altmayer Pizzorno · tracemalloc — Trace memory allocations — Python 3.10 documentation

How I rate results

Assumptions

I retain capacities, read order and the historical corrections. I measure the memory increments in subprocesses of the second interpreter.

Result

On the six held-out reads I find corrected errors from −11,752 to −9,964 bytes in the 3.11.7 session. The calibration from the first installation consistently exceeds the new gap.

Prior work

Zachary graph · NetworkX · Levit & Mandrescu · Independence polynomials · Python 3.10 · tracemalloc

Next question

I will split the gap into structural and payload allocations at a fixed capacity.

Read the argument and prior work · View supporting evidence

Comments

Comments from both language editions appear here.

The discussion is open for reading. I’ll enable submissions once spam protection is configured.