On 31 May 2010 08:57, Mike Caron <[email protected]> wrote:
> D:\ohrrpgce>dir gentest.xml
> 30/05/2010  04:52 AM       237,804,960 gentest.xml
>
> D:\ohrrpgce>xml2reload gentest.xml gentest.rld
> Loaded XML document in 20857 ms
> Memory usage: 301
> Parsed XML document in 17049 ms
> Memory usage: 573142499
> Freed XML document in 35378 ms
> Optimised document in 31149 ms
> Memory usage: 428328275
> Serialized document in 8557 ms
> Tore down memory in 173 ms
> Finished in 116510 ms
>
> D:\ohrrpgce>dir gentest.rld
> 30/05/2010  04:31 PM       203,271,865 gentest.rld
>
> And, here's a profile of CPU and Memory usage while doing the above:
>
> http://taleotc.com/Reloadprofile.png
>
> Note that on the CPU graph, Green is Usermode, while Red is Kernel mode. And
> that my CPU thinks it's dual core, so you should consider the 50% mark to be
> "max".

Hyperthreading?

> Further, you should care more about the "Commit" memory, rather than th
> "Physical" memory.
> --
> Mike

Yikes! Nearly twice as long to free as to load the XML document. Looks
like the memory allocator thrashed a lot while freeing memory, which
is odd because I would have expected xml nodes to be deleted in about
the same order they were created. Maybe libxml deletes attribute nodes
after deleting children. (Yes! I checked, and my hunch is correct!)

I assume that 3.0GB marks the total virtual memory committed on the
machine, and xml2relaod used roughly 1.5GB?

What does that xml file look like? It's interesting that the resulting
.reld is nearly the same size as the original! That 64MB test case
compressed to half the size.

Serialisation could be a bit faster (you can always increase the
buffer size to speed it up, going from 32kb to 64kb caused about a 20%
improvement), but mostly I'm happy with that.
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to