Re: [xml] memory usage question

On 8/17/05, Kasimier Buchcik <kbuchcik 4commerce de> wrote:

On Wed, 2005-08-17 at 10:08 -0400, Daniel Veillard wrote:
On Wed, Aug 17, 2005 at 10:04:08AM -0400, Rob Richards wrote:
Daniel Veillard wrote:

Ho ho ... if it's really the same document on both side there is something
fishy, I can't think of anything leading to this, seems it's twice the size
on Linux, and I really can't see why. I would be very interested in
on this, it may be a stupid accounting error in xmlmemory.c, or a real bug
which in that case sounds quite serious.

GD!!! It was using the wrong file there. The other file (damn typo) was
2X the size which caused this.
real numbers look correct.

  Damn, I was hoping for a cheap 2x memory usage optimization on Linux !
How disapointing :-)

Oops, so I can burry my started test already :-)




Out of interest sake how will the memory usage differ if one was not
using a dictionary? And what is actually added into the dictionary?

If I have a big XML file containing lots of the same tags with small
bits of data within these tags how much benefit will a dictionary

  <item id="1">
    <tag1>Some data</tag1>


Say I have 20 000 of these items how much will the dictionary save?

JC Oosthuizen

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