A fast, free threading Python - #99 by carljm - Ideas - Discussions on Python.org

https://discuss.python.org/t/a-fast-free-threading-python/27903/99

Discussions on Python.org A fast, free threading Python Ideas jamestwebber (James Webber) June 26, 2023, 3:19pm 80 Chris Angelico: pmf = sum(counters) # does this work? can't remember This will work as long as you give it an initial empty Counter to start with (otherwise it starts with 0 and complains) 1 Like Rosuav (Chris Angelico) June 26, 2023, 3:35pm 81 James Webber: This will work as long as you give it an initial empty Counter to start with (otherwise it starts with 0 and complains) Ah thanks. Anyhow, the idea is to minimize the work done in the single-threaded “gather” phase at the end, by having each thread individually count in a lock-free way. 1 Like lieryan (Lie Ryan) June 26, 2023, 4:20pm 82 Pawel Polewicz: If PEP-703 is accepted, subinterpreters will still be a possible ...

Linked on 2023-07-08 15:58:49 | Similar Links