1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

memory: Remove memory debugging

This is useless compared to sanitizers or valgrind and has a
considerable performance impact if enabled accidentally.
This commit is contained in:
Nick Wellnhofer
2024-04-28 18:33:40 +02:00
parent 5e80f4381b
commit 1cdfece12b
19 changed files with 142 additions and 716 deletions

View File

@@ -185,17 +185,6 @@ libxml_xmlPythonCleanupParser(PyObject *self ATTRIBUTE_UNUSED,
return(Py_None);
}
PyObject *
libxml_xmlDumpMemory(ATTRIBUTE_UNUSED PyObject * self,
ATTRIBUTE_UNUSED PyObject * args)
{
if (libxmlMemoryDebug != 0)
xmlMemoryDump();
Py_INCREF(Py_None);
return (Py_None);
}
/************************************************************************
* *
* Handling Python FILE I/O at the C level *

View File

@@ -779,6 +779,12 @@ def popInputCallbacks():
if len(__input_callbacks) == 0:
libxml2mod.xmlUnregisterInputCallback()
#
# Deprecated
#
def dumpMemory():
"""DEPRECATED: This feature was removed."""
# WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
#
# Everything before this line comes from libxml.py

View File

@@ -124,10 +124,6 @@
<return type='int' info="returns the number of bytes allocated and not freed"/>
<arg name='activate' type='int' info='1 switch on memory debugging 0 switch it off'/>
</function>
<function name='xmlDumpMemory' file='python'>
<info>dump the memory allocated in the file .memdump</info>
<return type='void'/>
</function>
<!-- xmlNsPtr accessors -->
<function name='xmlNodeGetNs' file='python_accessor'>
<info>Get the namespace of a node</info>