![](https://secure.gravatar.com/avatar/8b97b5aad24c30e4a1357b38cc39aeaa.jpg?s=120&d=mm&r=g)
Hi, one more note on this: Stefan Behnel wrote:
Martijn Faassen wrote:
By the way, the FAQ implies that passing an XSLT object into a thread will slow things down (probably as the XSLT would be re-interpreted). Is that still true in the current codebase? I had the impression from previous discussions that this would change.
Yes, the (ugly) code section that this statement was referring to was killed somewhere in 2.1.x. I removed the paragraph from the FAQ and also clarified a couple of other things while at it.
I should mention that there is /still/ some overhead involved when you mix documents from different threads here (as everywhere in lxml), including the stylesheet itself. However, as this also runs with the GIL released, your gain on multi-processor machines will still be higher than the overhead. YMMV, as usual, so profiling is always a good idea. :) Stefan