GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Python Wiki
  • PSF Wiki
  • Jython Wiki
  • Python Wiki
  • Archive

This view

  • Original page
  • New address

GeezerVison is showing wiki.python.org — Free Memory

View as Markdown

Free Memory¶

Legacy Wiki Page

This page was migrated from the old MoinMoin-based wiki. Information may be outdated or no longer applicable. For current documentation, see python.org.

As Christian Heimes describes it here, Python uses its own memory allocator for small objects (< 257 bytes). Larger objects are allocated directly with malloc, smaller objects end up in arenas. The code is well documented in obmalloc.c.

  • Classes with a [del] method may create reference cycles. The GC can’t break cycles when a [del] method is involved.

  • keeping references to tracebacks, exception objects (except Exception, err) or frames (sys._getframe())

Related information:

  • tips from Christian Heimes to find memory leaking code

  • difficulties to find a leak in Edgewall Trac

  • reducing the footprint of python applications

  • CodingProjectIdeas/PythonGarbageCollected

Previous
Free Hosts
Next
Free Software
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.