a little bit more lxml performance tweaking

from blog Secret Weblog, | ↗ original
↗ original
Today I merged the backpointer branch with the lxml trunk, and have been cleaning up a bit more. In particular I've cleaned up some useless extra subclasses that were only necessary to introduce weak reference support to the various classes. I've now removed these subclasses, which cleans things up a bit more.Today I merged the backpointer branch with the lxml trunk, and have been cleaning up a bit more. In particular I've cleaned up some useless extra subclasses that were only necessary to introduce weak reference support to the various classes. I've now removed these subclasses, which cleans things up a bit more. This also resulted in some performance gains! Not very spectacular ones, but still noticable:This also resulted in some performance gains! Not very spectacular ones, but still noticable: nodereg backptr ...nodereg backptr ...