Skip to content

[特征] 能否通过并行加速查询单词? #92

Open

Description

@leetking

添加单词后需要批量查询意思,虽然能选中然后查询,但是当单词很多而且是从网络上爬取解释时,一个单词会花去大概三四秒偶尔更多。
所以能不能在批量查询时,把任务分配到多个线程或协程加速查询吗?

Activity

  1. yiqgao commented on Jul 5, 2018

    @yiqgao

    vote this

  2. sth2018 commented on Jul 5, 2018

    @sth2018
  3. leetking commented on Jul 7, 2018

    @leetking
    Author

    @sth2018 谢谢开发,尝试一下

  4. GarrisonBaird commented on Jul 15, 2018

    @GarrisonBaird
    Contributor

    Note that online queries should be rate limited, I don't think we need multi thread. If you have so much cards, leave your PC run it at night.

  5. finalion commented on Aug 7, 2018

    @finalion
    Owner

    @GarrisonBaird 赞成,现在查询每个单词时会使用多线程对多个字典进行抓取,但是对多个单词同时进行抓取时,可能会导致接口被封。

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