Understanding Python Memory Usage & Optimizations

Debugging Cyclic References

Following code shows how cyclic references are made and with no proper cleanup can lead to bloating of memory:

Improving performance using Python Interning

Following code shows a program which can be improved in performance by using Python's interning optimization:

Summary