4 ms·
But the bar to parallelizing code gets much lower, in theory. Your serial code got 5% slower but has a direct path to being 50% faster. And if there's a good f
by pphysch 1y ago
But the bar to parallelizing code gets much lower, in theory. Your serial code got 5% slower but has a direct path to being 50% faster.
And if there's a good free-threaded HTTP server implementation, the RPS of "Python code as a whole" could increase dramatically.
- weakfish 1y agoIs there any news from FastAPI folks and/or Gunicorn on their support?
- fjasdfas 1y agoYou can do multiple processes with SO_REUSEPORT. free-threaded makes sense if you need shared state.
- pphysch 1y agoAny webserver that wants to cache and reuse content cares about shared state, but usually has to outsource that to a shared in-memory database because the language can't support it.
- monkeyelite 1y agoAnd most web servers already need in memory databases for other things. And it’s a great design principle - use sharp focused tools.