xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Pogue <mpo...@apache.org>
Subject Re: DOM size
Date Thu, 11 May 2000 18:30:08 GMT
How did you measure the memory consumption?  Did you also account for
gc?

Mike

Joseph Shraibman wrote:
> 
> 500 simple Documents in  Xerces-J using version 1.0.2 takes up 53668K. In version
> 1.0.4 it is 52584K.  A document should not take up 100k.
> 
> Documents were created from the String:
> <base ><child  field1=\"text\" field2=\"string\" /></base>
> 
> Mike Pogue wrote:
> 
> > Also note that both Xerces-J and Xerces-C have recently had memory optimizations
> > done to the DOM (courtesy of Arnaud LeHors).  In some cases, nodes got 30% smaller,
> > at virtually no cost in performance.
> >
> > So, be sure to measure using the latest 1.0.4 Xerces-J.  Xerces-C will be doing
a
> > build with these changes in it shortly...
> >
> > Mike
> >
> > Tim Bray wrote:
> > >
> > > At 08:57 AM 5/11/00 +0200, Dennis Thrysoe - netnord wrote:
> > > >Does anybody have a ballpark figure on how much memory a DOM would eat
up if
> > > >it was an entire 16 mb XML file. (The implementation is IBM's XML4J 2.0.15
-
> > > >but I'm just looking for a qualified guess).
> > >
> > > N * 16M, where N ranges between 1.5 for a fine-tuned readonly DOM
> > > implementation in C [done by David Megginson but never released I think], to
> > > over 20 for some perl implementations.  Also it depends (a lot) on how
> > > dense the tags are. -Tim
> > >
> > > ---------------------------------------------------------------------
> > > In case of troubles, e-mail:     webmaster@xml.apache.org
> > > To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> > > For additional commands, e-mail: general-help@xml.apache.org
> >
> > ---------------------------------------------------------------------
> > In case of troubles, e-mail:     webmaster@xml.apache.org
> > To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> > For additional commands, e-mail: general-help@xml.apache.org
> 
> ---------------------------------------------------------------------
> In case of troubles, e-mail:     webmaster@xml.apache.org
> To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
> For additional commands, e-mail: general-help@xml.apache.org

Mime
View raw message