[BangPypers] parsing xml

Venkatraman S venkat83 at gmail.com
Sun Jul 31 20:03:57 CEST 2011


On Sun, Jul 31, 2011 at 10:58 PM, Dhananjay Nene
<dhananjay.nene at gmail.com>wrote:

> a. the minidom performance is acceptable - no further optimisation required
> b. minidom performance is not acceptable - try the regex one
> c. python library performance is not acceptable - switch to 'c'
>
> I can imagine people starting with a and then deciding to move along the
> path a->b->c if and as necessary.
> I believe starting with b risks obfuscating code (imo regex is obfuscated
> compared to xml nodes - YMMV)
>

A regex is the simplest IMHO, because you need not know the syntax of the
minidom parser.
But, again i have seen this quiet often that lack of knowledge of regexp has
led people to other solutions (the grapes are sour!)


> I don't know of any python programmers who are speed-maniacs. I am worried
> anytime someone programs in something else than assembly/machine code and
> uses the latter word. The rest of us are just trading off development speed
> vs. runtime speed.
>

Hang around in #django or #python. The most elegant code that you *should*
write would invariably be pretty fast (am not ref to asm).


More information about the BangPypers mailing list