Re: [xml] libxml2 [Sub-document C14N / Custom Malloc]



Tejus A G wrote:
> Hi All,
> I have 2 queries w.r.t libxml2 API/usage.
>
> 1. ....
> 2. Is there any way to give the libXML2 library a custom malloc function ? > So, that all memory allocations the library does goes through it instead of
> whatever libXML2 is using.
>

See:
xmlMemSetup
xmlGcMemSetup

(Note: We have successfully used these on windows (together with HeapCreate / HeapAlloc / HeapFree) to significantly improve the performance of xml parsing in a heavily multithreaded app.)

br,
Martin




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]