Making CPython faster
Making CPython faster
Posted Jun 4, 2021 6:28 UTC (Fri) by anton (subscriber, #25547)In reply to: Making CPython faster by Paf
Parent article: Making CPython faster
If multi-threaded was always worse in every respect, nobody would do it.
But my point is that if you serve many concurrent clients on CPU-intensive jobs, that alone will load the cores, and you don't want to increase the cycles needed by multi-threading each job. By contrast, successful single-thread optimization will reduce the cycles needed for each job, which will be more useful in this kind of setting.