Journal of Operating Systems Development & Trends

An Optimized Memory Allocation and Deallocation Method while Programming in Python

  1. S.S. Sugantha Mallika ✉
  2. I. Mettildha Mary
  3. M. Priyadharshini
  4. N. Balaji

Abstract

AbstractMemory management is memory allocation and deallocation for objects done automatically at run time in Python. Programmers need not allocate or deallocate memory explicitly. Python Virtual Machine (PVM) handles these activities. Every Python object is stored in its own way, that is, different objects are stored in different methods. Reference counting algorithm is used for memory management in Python.Keywords: Allocation, deallocation, PVM, reference countingCite this ArticleS.S. Sugantha Mallika, I. Mettildha Mary, M. Priyadharshini, N. Balaji. An Optimized Memory Allocation and Deallocation Method while Programming in Python. Journal of Operating Systems Development & Trends. 2019; 6(1): 1–6p.

References (14)

  1. Memory management in various languages: https://www.memorymanagem ent.org/mmref/lang.html
  2. Stephen Gilmore. Advances in Programming Languages: Memory Management. The University of Edinburgh; Jan 15, 2007.
  3. C Programming Language: Memory Management: Application to Arrays. CAAM 519, Chapter 7, LOIC CAPPANERA.
  4. https://www.slideshare.net/nnja/memory- management-in-python-the-basics
  5. Nageswara Rao R. Core Python Programming. Dreamtech Press; 2017.
  6. https://www.youtube.com/watch?v=arxWa w-E8QQ
  7. Mark Lutz. Learning Python. 5th Edn. O’Reilly Publishing; 2013.
  8. https://medium.com/@tyastropheus/tricky- python-i-memory-management-for- mutable-immutable-objects- 21507d1e5b95
  9. https://stackoverflow.com/questions/4814 4599/memory-allocation-for-immutable- objects
  10. Goodrich Michael T, Roberto Tamassia, Goldwasser Michael H. Data Structures and Algorithms in Python. Wiley; 2013.
  11. https://www.journaldev.com/17927/pytho n-garbage-collection-gc
  12. Python Software Foundation [US]: https://docs.python.org
  13. https://stackoverflow.com/questions/4495 60/how-do-i-determine-the-size-of-an- object-in-python
  14. https://code.tutsplus.com/tutorials/understa nd-how-much-memory-your-python- objects-use--cms-25609 Cite this Article S.S. Sugantha Mallika, I. Mettildha Mary, M. Priyadharshini, N. Balaji . An Optimized Memory Allocation and Deallocation Method while Programming in Python . Journal of Operating Systems Development & Trends. 2019; 6(1): 1–6p.

Read more of it

Subscribe to one journal or build your own list of several. One invoice, one payment, access for a full year.

Subscribe to journals →

Publish your article

Peer-reviewed journals across every subject, with open access options. Send your manuscript to the right editor today.

Publish with us → Calculate your APC
Support