[XML-SIG] PyDOM performance
Mike Olson
Mike.Olson@FourThought.com
Wed, 25 Aug 1999 13:49:32 -0500
Out of curiosity I did a quick benchmark on the file you referenced and I was
rather suprised by the results.
Both tests where on a Celeron 366/ 128MB running linux. Neither test performed
XML validation as I did not have a DTD.
4DOM was made with the orbless option and used the Ext.Builder.FromXmlFile
method. the 4DOM version was from our cvstree which will be available by weeks
end.
Non validating 4DOM
Start: 935605414.575
End: 935605415.11
Delta: 0.535288095474
pydom is version 0.5.1 from the RPMs and used the utils.FileReader()
Non validating pydom
Start: 935605415.148
End: 935605418.212
Delta: 3.0643119812
I was quite suprised by this. I don't know enough about the pydom internals to
explain why it is slower. I just always assumed it was faster.
We will still be looking to speed up 4DOM with the C implementation of the trees.
Later
Mike
Mike Olson wrote:
> Carey Evans wrote:
>
> >
> > And, is it worth doing anything to PyDOM, or would I be better off
> > looking at 4DOM, for example?
>
> I don't think you will get much speed increase (infact it may be slower) with
> 4DOM. We wrote 4DOM more conscerned with meeting the W3c spec to the letter
> then speed.
>
> One note, we are going to rewite all of the tree stuff in 4DOM in Red Black or
> avl tree in C by the end of the month or early next month which should give us
> some speed increases. At that we will do some serious bench marks netween the
> 2 and work out a pythonic interface.
>
> Mike
>
> >
> > Thanks.
> >
> > --
> > Carey Evans http://home.clear.net.nz/pages/c.evans/
> >
> > "This is where your sanity gives in..."
> >
> > ------------------------------------------------------------------------
> >
> > dom-core.diffName: dom-core.diff
> > Type: text/x-patch
>
> --
> ----------------
> Mike Olson
> Consulting Member
> FourThought LLC
> http://www.fourthought.com http://opentechnology.org
>
> _______________________________________________
> XML-SIG maillist - XML-SIG@python.org
> http://www.python.org/mailman/listinfo/xml-sig
--
----------------
Mike Olson
Consulting Member
FourThought LLC
http://www.fourthought.com http://opentechnology.org