mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-25 23:21:26 +03:00
- added the patch from Carl Nygard <cnygard@bellatlantic.net>
which allow impressive speed improvement on dataset with large text pieces, but at the cost of broken binary compatibility and slightly bigger memory usage. Configure with --with-buffers to activate them, they are protected with XML_USE_BUFFER_CONTENT define. - added xmlCleanupPredefinedEntities(), memory allocation cleanup Daniel
This commit is contained in:
parent
6dff214ed7
commit
a594bf46ec
12
entities.c
12
entities.c
@ -148,6 +148,18 @@ void xmlInitializePredefinedEntities(void) {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlCleanupPredefinedEntities:
|
||||
*
|
||||
* Cleanup up the predefined entities table.
|
||||
*/
|
||||
void xmlCleanupPredefinedEntities(void) {
|
||||
if (xmlPredefinedEntities == NULL) return;
|
||||
|
||||
xmlFreeEntitiesTable(xmlPredefinedEntities);
|
||||
xmlPredefinedEntities = NULL;
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlGetPredefinedEntity:
|
||||
* @name: the entity name
|
||||
|
@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table);
|
||||
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
||||
xmlEntitiesTablePtr table);
|
||||
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
||||
void xmlCleanupPredefinedEntities(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -88,6 +88,7 @@ void xmlFreeEntitiesTable (xmlEntitiesTablePtr table);
|
||||
void xmlDumpEntitiesTable (xmlBufferPtr buf,
|
||||
xmlEntitiesTablePtr table);
|
||||
xmlEntitiesTablePtr xmlCopyEntitiesTable (xmlEntitiesTablePtr table);
|
||||
void xmlCleanupPredefinedEntities(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user