3 ms·
If you're CPU bound, I think it's a good option to at least check out. It can work with real threads, and doesn't compete with the GIL. In our case, our actual
by mattrobenolt 13y ago
If you're CPU bound, I think it's a good option to at least check out. It can work with real threads, and doesn't compete with the GIL. In our case, our actual CPU was low, but due to the high concurrency, any little bit of CPU work requires a context switch and contends with everything, for a little work. We alleviated that by just using a bunch of processes.
Will it replace all of our Python? Highly doubt it. Some very specific pieces? Probably.
- james4k 13y agoDo you know about GOMAXPROCS? Sounds like tuning it could help.
- mattrobenolt 13y agoI was referring to our Python processes being CPU bound. Not Go. :) Yes, I'm familiar with GOMAXPROCS.