[lxml-dev] nscleanup branch merged: better namespace handling in lxml

Christian Zagrodnick cz at gocept.com
Sun Feb 25 14:06:54 CET 2007


Hey Stefan


On 2007-02-25 10:38:47 +0100, Stefan Behnel <stefan_ml at behnel.de> said:

> Stefan Behnel wrote:
>> I finally found the time to take a second look back at the nscleanup branch.
>> [...]
>> I also expect it to be faster than the previous version -
>> although I haven't done the benchmarks yet to prove it.
> 
> I did some now. It looks like most benchmarks for objectify get faster
> compared to 1.2, between 5% and 30% on my machine. That's because objectify
> suffers a lot from document merging, as assigning elements to other element's
> attributes does exactly that. Note that 1.2 is somewhat slower than 1.1.2 in a
> couple of places. In total, the new version is more or less as fast as 1.1.2
> was, sometimes faster, sometimes slower.

[...]

> 
> So, I'm quite happy with the results so far. There may still be some space
> left for optimisations, but it's not too urgent as it seems. And namespace
> handling definitely has much better semantics now.

Wow, that was quick :)

Thanks for the integration. My case works like charm now (makeelement 
and append or insert).

*anxioulsy waiting for the release* :)


-- 
Christian Zagrodnick

gocept gmbh & co. kg  ·  forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891





More information about the lxml-dev mailing list