[XML-SIG] I am confused...

Uche Ogbuji uche.ogbuji@fourthought.com
Mon, 29 Jan 2001 14:15:03 -0700


> > I do not remember if this was what I used for measuring, but
> > this was my another effort to create query-mechanisms
> > (It doesnt work anymore due to lack of xml.dom.utils)
> 
> Thanks. I've ported it to minidom, see the code below. Fortunately,
> the DOM implementations follow the official API quite closely these
> days, so it is easy to move from one implementation to another.

Ain't standardization coool?

> Using Uche's 640k document, I get the following timings:
> 
> minidom: 6.4s
> 4DOM: 45s
> pDomlette: 8.9s

That chunky 4DOM.  Who wrote that anyway?

> cDomlette fails since it does not support createElement (pDomlette
> only has create*NS operations, so I added None as the namespace
> everywhere).

Yeah.  We're still debating adding mutation to cDomlette.  This thread makes 
me inclined to do so.

> Remember, this is the same machine where Uche's cDomlette/XPath query
> took 0.5s. So it *does* matter how exactly you approach a certain task
> (you can easily get a factor of 90 between solutions). However, if I
> had to guess in advance what the approximate outcome would have been
> in each of the solutions, I had been totally wrong.

So would I.  My guess would have been

cDomlette = 1
SAX = 1.5
pDomlette (pyexpat reader) = 2
4DOM = 10
minidom = 2

As you can see, I was way off as well.


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@fourthought.com               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com 
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python