[pypy-dev] slow-ish multithreaded primitives
Mark Roberts
wizzat at gmail.com
Sun Feb 23 18:57:27 CET 2014
How hostile would you be to a pypy-2.8 branch with these kinds of improvements?
-Mark
> On Feb 23, 2014, at 1:04, Armin Rigo <arigo at tunes.org> wrote:
>
> Hi Dima,
>
>> On 22 February 2014 20:51, Dima Tisnek <dimaqq at gmail.com> wrote:
>> Right, I narrowed it down to condition.wait being much slower with a
>> timeout than without.
>
> Thanks! Fixed. Indeed, I simply took the version of lock.acquire()
> from the py3k branch (with support for timeout and interrupts), and
> applied it in the default branch, under the name lock._py3k_acquire().
> Then, simply fixing threading.py to use this, solves the performance
> issue reported here. I guess the same could be done with CPython ---
> it's just a performance fix --- but given the destructive approach of
> python-dev towards 2.7, I doubt it will be accepted.
>
>
> A bientôt,
>
> Armin.
> _______________________________________________
> pypy-dev mailing list
> pypy-dev at python.org
> https://mail.python.org/mailman/listinfo/pypy-dev
More information about the pypy-dev
mailing list