Heim  >  Fragen und Antworten  >  Hauptteil

python3.5 - python open读写文件时如何实现异步IO,解决IO瓶颈带来的性能问题

python open读写文件时如何实现异步IO,解决IO瓶颈带来的性能问题

大家讲道理大家讲道理2741 Tage vor1117

Antworte allen(3)Ich werde antworten

  • 高洛峰

    高洛峰2017-04-18 10:17:11

    百度gevent

    Antwort
    0
  • 阿神

    阿神2017-04-18 10:17:11

    用asyncio,推荐题主看下500Lines的A Web Crawler With asyncio Coroutines就明白异步的概念了。

    Antwort
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 10:17:11

    asyncio + aiofiles
    用这个https://github.com/Tinche/aio...

    Antwort
    0
  • StornierenAntwort