A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/065801.html below:

A couple garbage collector questions

A couple garbage collector questions A couple garbage collector questionsSkip Montanaro skip at pobox.com
Thu Apr 5 13:34:52 EDT 2001
    >>> Reference-counting exacts very heavy performance costs, no matter
    >>> what you back it up with.

    Hannah> Correct. *Except* if the compiler does heavy optimization of
    Hannah> reference count updates (i.e. if you can prove that some basic
    Hannah> block just increases the RC, later decreases it, having a net
    Hannah> effect of +- 0, you can drop both RC updates, and so on).

This is unlikely to happen in practice.  A basic block consists of a
straightline piece of code containing no branches.  There's no reason to
increment a reference count and decrement it within the same basic block,
since the object's reference count can't be decremented to zero by some
other piece of code.

-- 
Skip Montanaro (skip at pobox.com)
(847)971-7098


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4