Avancé
Performance Python Async
Optimise du code Python avec async/await.
📝 프롬프트 내용
Optimise ce code Python avec async/await :
[INSÉRER CODE SYNCHRONE]
Transformations requises :
1. Identification des opérations I/O bloquantes
2. Utilisation de asyncio, aiohttp, asyncpg
3. Gestion des exceptions en async
4. Limitation de concurrence
5. Timeout et cancellation
6. Testing avec pytest-asyncio
Fournis le code async optimisé avec benchmarks comparatifs.