Skip to content

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

Description

@csrgxtu

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

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

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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