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()[source]

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

EXAMPLES:

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