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).