Python's cyclic GC collector uses exact reference count.
See https://devguide.python.org/garbage_collector/ for detail.

On Mon, Aug 24, 2020 at 12:29 AM Raihan Rasheed Apurbo
<apurb...@gmail.com> wrote:
>
> In CPython we have reference counting. My question is can we optimize current 
> RC using strategies like Deferred RC and Coalescing? If no then where would I 
> face problem if I try to implement these sorts of strategies?
>
> These strategies all depend on the concept that we don't need the exact value 
> of reference count all the time. So far in my observation, we only need exact 
> value before running a cycle collector.  If we can manage to make sure that 
> we have exact value before entering the cycle collector then in my opinion we 
> can add these optimizations strategies to some extent.  Is there something 
> that I am missing? Or It is quite possible? If not possible please tell me 
> the factors I should consider.
>
> Thanks in advance.
> _______________________________________________
> Python-ideas mailing list -- python-ideas@python.org
> To unsubscribe send an email to python-ideas-le...@python.org
> https://mail.python.org/mailman3/lists/python-ideas.python.org/
> Message archived at 
> https://mail.python.org/archives/list/python-ideas@python.org/message/G2BCHK766Z6ABFEF5KOKC27W4VBNNVSE/
> Code of Conduct: http://python.org/psf/codeofconduct/



-- 
Inada Naoki  <songofaca...@gmail.com>
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/2Y64LLWFGPUGLOCAC42NPBFSYZGOYWLY/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to