[issue4794] garbage collector blocks and takes worst-case linear time wrt number of objects

Martin v. Löwis report at bugs.python.org
Fri Jan 2 17:01:39 CET 2009


Martin v. Löwis <martin at v.loewis.de> added the comment:

Hard real-time applications written in Python should not rely on the
cyclic garbage collector. They should call gc.disable at startup, and
completely rely on reference counting for releasing memory. Doing so
might require rewrites to the application, explicitly breaking cycles so
that reference counting can release them.

Even with cyclic gc disabled, applications worried about meeting hard
deadlines need to look even more into memory allocation and
deallocation; e.g. releasing a single object may cause a chained release
of many objects, which can affect worst case execution times. There are
more issues to consider (which are all out of scope of the bug tracker).

----------
nosy: +loewis

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4794>
_______________________________________


More information about the Python-bugs-list mailing list