Re:Show HN: Bringing multithreading to Python's async event ...
by nbsande on Thursday October 03, 2024 @11:58PM
(#41737684)
Having too many threads all running at the same time can also cause a performance hit, and I don't mean hitting the OS limit on threads. The more threads you have running in parallel(remember this is considering a GIL-less setup) the more you need to context switch between the. Having fewer threads all running in an event loop allows you to manage more events with only a few threads, for example setting the number of event loop threads to the number of cores on the cpu.
[ Parent
| on HN ]
There are no comments on this comment yet.