> Message: 1
> Date: Fri, 8 Jun 2012 01:25:30 +0000
> From: Chang Im <[email protected]>
> To: "[email protected]" <[email protected]>
> Subject: [xml] xmlNodeDump performance
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi,
>
> I am new to libxml and XML itself.  We are using version 2.7.7.
>
> I am looking into performance issue related to xmlNodeDump of entire tree.
> The size of XML file is about 20 MB and it takes about 60+ seconds with 
> xmlNodeDump.
>
>   
Do you really need this tree dump in memory? If the ultimate goal is to 
have this on a file,
the functions in xmlsave (xmlSaveToFd, xmlSaveToFilename,...) should be 
preferred.
-W


> Oprofiling showed memcpy as the hit.
>
> The xmlBufferResize takes MINLEN increments and that is defined as 4000 in 
> xmlIO.c
> When MINLEN is changed to 400,000 to see the effect, the time taken is 
> changed to about 1 sec from 60+ seconds.
>
> When MINLEN is changed to 40000, time taken is changed to 7 seconds.
>
> Is this something needs to be tuned properly to support large XML files?
> If so, any good suggestions?
>
> Thanks.
> Chang Im | Software Engineer
> WatchGuard Technologies, Inc.
>   

<<attachment: wolfgang_laun.vcf>>

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to