Skip to content

使用gevent来做域名解析可能速度更快 #1

@adieu

Description

@adieu

由于GIL的存在,Python的Threading效果并不是那么好。如果用coroutine的方式来做,可能速度更快一点。

参见 https://bitbucket.org/denis/gevent/src/aa97a252cf67/examples/dns_mass_resolve.py

我没有实际对比过,所以仅仅是个建议而已,供参考。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions