#gil

[ follow ]
fromQuansight
3 days ago

Scaling asyncio on Free-Threaded Python

The Python standard library provides the asyncio module to facilitate writing high-performance concurrent code. By leveraging async/await syntax, it provides a high level API for creating and managing event loops, coroutines, tasks, and performing asynchronous I/O operations. It is used as a foundation for Python asynchronous frameworks that provide high-performance network and web-servers, database connection libraries, distributed task queues, etc. Multiple libraries and frameworks, such as FastAPI and aiohttp, are built on top of asyncio.
Software development
Cooking
fromThe JetBrains Blog
3 months ago

Faster Python: Concurrency in async/await and threading | The PyCharm Blog

The difference between async/await and multithreading in Python primarily relates to how they manage concurrent task execution under the GIL.
[ Load more ]