Low-level memory allocation functions - Utilities

Skip to content
Back to top
View this page
Edit this page

# Low-level memory allocation functions

AUTHORS:

- Jeroen Demeyer (2011-01-13): initial version (Issue #10258)

- Jeroen Demeyer (2014-12-14): add more functions (Issue #10257)

- Jeroen Demeyer (2015-03-02): move from `c_lib` to Cython (Issue #17881)

sage.ext.memory.init_memory_functions()

  Set the MPIR/GMP memory functions to the above functions.

  EXAMPLES:

  Sage

      sage: from sage.ext.memory import init_memory_functions
      sage: init_memory_functions()

  Python

      >>> from sage.all import *
      >>> from sage.ext.memory import init_memory_functions
      >>> init_memory_functions()