Sujet : Re: GIL-Removal Project Takes Another Step (Posting On Python-List Prohibited)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.pythonDate : 19. Mar 2024, 04:33:44
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <utati7$k004$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Mon, 18 Mar 2024 17:11:52 -0700, Paul Rubin wrote:
... the idea that GC uses more memory seems erroneous to me.
It will use whatever memory it is permitted to use.
Consider that every time you call a method, a new method-wrapper object is
dynamically created, and almost always immediately deleted when the call
returns. So even a very simple, seemingly well-behaved Python script, if
running for long enough, would consume more and more memory if it were not
for reference-counting.