[lxml-dev] thread-related crash when using xslt
Stefan Behnel
stefan_ml at behnel.de
Thu Feb 26 10:07:01 CET 2009
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
More information about the lxml-dev
mailing list