[Python-ideas] Exploiting type-homogeneity in list.sort() (again!)

Elliot Gorokhovsky elliot.gorokhovsky at gmail.com
Mon Mar 6 01:08:10 EST 2017


Another solution: check if there is more than one thread; if there is, then
disable optimization. Is sorting in multithreaded programs common enough to
warrant adding the complexity to deal with it?

On Sun, Mar 5, 2017 at 10:52 PM Elliot Gorokhovsky <
elliot.gorokhovsky at gmail.com> wrote:

> On Sun, Mar 5, 2017 at 10:45 PM Elliot Gorokhovsky <
> elliot.gorokhovsky at gmail.com> wrote:
>
>
> the problem is, how can we get a unique identifier for the thread in a
> platform-independent way? Any ideas?
>
>
> Oh, I could probably just copy over code from threading.get_ident()... not
> sure if the key-value table is a good solution, though.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170306/039f61d8/attachment.html>


More information about the Python-ideas mailing list