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

GoogleHosts-Python程序优化方案(加入数学方法) #4

Open
csrgxtu opened this issue Apr 14, 2015 · 0 comments
Open

GoogleHosts-Python程序优化方案(加入数学方法) #4

csrgxtu opened this issue Apr 14, 2015 · 0 comments

Comments

@csrgxtu
Copy link
Owner

csrgxtu commented Apr 14, 2015

Project的release版本已经出来,可是,GoogleHosts-Python有22W IP 地址,程序通过多进程跑,仍然很慢。慢就慢在网络请求上面了

我想模仿谷歌的PageRank方法,给每个IP赋一个权值,每次跑程序的时候,就根据IP地址的访问时间,是否提供搜索服务等等来更新这个IP对应的权值。然后以后在跑程序的话,就优先考虑权值高的IP,即优质IP。

虽然这样做,可能会遗漏一部分可用IP,但是他能够使程序在最短的时间检索出可用IP,只要基本大部分正确就可以了。

毕竟太慢了,没人会愿意使用。

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

1 participant