Comment 6 for bug 1748019

Revision history for this message
scoder (scoder) wrote :

I agree that this can be done in some places, and it would probably improve the situation.

However, lxml also allows callbacks into user code from within the parser. Setting and resetting a couple of thread-local variables at each callback (e.g. for every tag and every chunk of text) would probably still end up being costly.