Re: [xml-dev] Does SAX make sense?

From
David Megginson <>
To
Date
2003-04-19T11:57:42Z
ID
<>
Thread
Re: [xml-dev] Does SAX make sense?
Miles Sabin writes:

 > For a one-shot application (ie. startup; process one document instance; 
 > terminate) the classloading overhead for the DOM API can be quite 
 > significant even with the most recent VMs. In some work I've done 
 > lately I've seen DOM classloading account for as much as 10% of wall 
 > clock time with the Sun 1.4.1_02 VM on Linux, Solaris and the other 
 > one. SAX, being a much smaller API, is at an advantage here.

That's scary.  I meant just the time for object allocation when
loading the XML document (a DOM tree contains a *lot* of objects).  I
had not considered class loading overhead.


All the best,


David

-- 
David Megginson, , http://www.megginson.com/