[XML-SIG] DOM performance?
Fredrik Lundh
fredrik@pythonware.com
Sat, 8 Jun 2002 19:43:15 +0200
Uche wrote:
> Yeah. You're using 4DOM. Very thorough, but very slow. You can get much
> better perfoamnce by using a different DOM implementation
do you happen to have any benchmarks available that
compares 4DOM with minidom and cdomlette?
just curious-ly yrs /F
:::
> Option one: using the software you've alreasdy installed.
>
> Use minidom instead:
>
> import sys
> from xml.dom import minidom
> doc = minidom.parse(sys.stdin)
>
>
> Option two: Even faster, but requires additional software.
>
> Install 4Suite 0.12.0. Preferably a recent CVS snapshot. Then use cDomlette
>
> import sys
> from Ft.Xml.Domlette import NonvalidatingReader
> doc = NonvalidatingReader.parseStream(sys.stdin)