Re: [xml] memory usage question
- From: "Tuukka Pasanen" <tuukka pasanen ilmi fi>
- To: xml gnome org
- Subject: Re: [xml] memory usage question
- Date: Wed, 17 Aug 2005 18:06:47 +0300 (EEST)
Hi,
I runned this problem earlier an actually using dictionary saves much much
much memory. We had XML file around 20000 same set of tags and it took
something like 200Mb after dictionary it took only 20mb. So Dictionary
removes these cumulative memory usages..
I think I should post a little example because i've been playing with this
lately..
Tuukka
ps. you can count: tag1 allocates 4 bytes memory without dictionary
everytime you create one (I can be wrong but that's how i understood this,
somebody correct me).. sounds little but makes very countable when talking
big junks of tags
Hi.
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
give?
eg.
<root>
<item id="1">
<tag1>Some data</tag1>
<tag2>123</tag2>
</item>
...
...
</root>
Say I have 20 000 of these items how much will the dictionary save?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]