3 ms·
While it certainly has its rough edges, I'm a big asyncio user. So I'll be over here happily writing concurrent python that's single threaded, ie. pretending my
by seabrookmx 1y ago
While it certainly has its rough edges, I'm a big asyncio user. So I'll be over here happily writing concurrent python that's single threaded, ie. pretending my Python is nodejs.
For the web/network workloads most of us write, I'd highly recommend this.
- dontlaugh 1y agoAsyncio being able to use thread pools would reduce memory usage at the very least.
- seabrookmx 1y agoHow so? As opposed to running multiple processes you mean?
- dontlaugh 1y agoExactly, you could do like other runtimes and run a single process that can saturate all cores. You wouldn’t be duplicating the interpreter, your code, config, etc.