RE: [xml] libxml2 memory consumption




-----Original Message-----
From: Petr Tomasek [mailto:tomasek etf cuni cz]
Sent: Friday, April 19, 2002 2:59 PM
To: Henke, Markus
Subject: Re: [xml] libxml2 memory consumption


On Thu, Apr 18, 2002 at 01:27:31PM +0200, Henke, Markus wrote:
Is this the "normal" relation of document size/
memory consumption or is something wrong with

Yes it is. You need several variables to be stored for each node.

Well, that's clear. But a ratio of 1:12?
Doesn't it mean that parsing a document using the DOM like API
is impracticable for a document size > ~ 20MB (on a "average"
machine)?
I'd hoped that there is a way to reduce memory consumption...
 
BTW, Daniel, if I understand it well, each string (e.g. element name) 
is stored each time. (I mean, let's say you have xml document with
10000 times <something/> element, so you have 10000 times "something"
string in memory). Maybe we could use hash tables while parsing the
document and leaving literary same strings in one location?

Petr Tomasek

--
Petr Tomasek, http://www.etf.cuni.cz/~tomasek/



Thanx, Markus



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