Pull to refresh
  • by relevance
  • by date
  • by rating

Objects without reference cycles and cyclic GC

Python

Each instance of a class in CPython created using the class syntax is involved in a cyclic GC mechanism. This increases the memory footprint of each instance and can create memory problems in heavily loaded systems.


Is it possible to use only basic reference counting mechanism when necessary?

Let's analyze one approach based on recordclass library that will help to create classes whose instances will only be deleted using the reference counting mechanism.


Note: this is translation from original post (in russian).

Read more →
Total votes 3: ↑3 and ↓0+3
Views849
Comments 0