[New-bugs-announce] [issue33597] Compact PyGC_Head

INADA Naoki report at bugs.python.org
Tue May 22 03:06:22 EDT 2018


New submission from INADA Naoki <songofacandy at gmail.com>:

Currently, PyGC_Head takes three words; gc_prev, gc_next, and gc_refcnt.

gc_refcnt is used when collecting, for trial deletion.
gc_prev is used for tracking and untracking.

So if we can avoid tracking/untracking while trial deletion, gc_prev and gc_refcnt can share same memory space.

This idea reduces PyGC_Head size to two words.

----------
components: Interpreter Core
messages: 317262
nosy: inada.naoki, pitrou
priority: normal
severity: normal
status: open
title: Compact PyGC_Head
type: resource usage
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33597>
_______________________________________


More information about the New-bugs-announce mailing list