bpo-38070: visit_decref() calls _PyObject_IsFreed() by vstinner · Pull Request #15782 · python/cpython (original) (raw)
I compared performances without/with the change.
(*) Test 1: ./configure --with-pydebug; make; ./python -m test -j0 # using 8 logical CPUs and gcc -Og
- ref: Total duration: 3 min 19 sec
- patch: Total duration: 3 min 24 sec (almost the same)
(*) Test 2: bm_deltablue.py of pyperformance
"Benchmark hidden because not significant (1): deltablue"
Ok, it seems like this change has no significant impact on a debug build of Python.