Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
adieu opened this issue Dec 6, 2011 · 1 comment
Open

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

adieu opened this issue Dec 6, 2011 · 1 comment

Comments

@adieu
Copy link

adieu commented Dec 6, 2011

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

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

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

@xiyoulaoyuanjia
Copy link

这个建议还是值得参考的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants