2 threads or 100 threads?
2 threads or 100 threads?
Posted Aug 21, 2024 3:30 UTC (Wed) by wujj123456 (subscriber, #84680)Parent article: Python subinterpreters and free-threading
> "if I split that in half and executed between two threads in Python 3.12, it would take twice as long"
The code and comment indicates it's splitting into 100 threads to get 2x slower. This kind of overhead is more plausible than having only 2 threads but 2x slower.
