添加单词后需要批量查询意思,虽然能选中然后查询,但是当单词很多而且是从网络上爬取解释时,一个单词会花去大概三四秒偶尔更多。 所以能不能在批量查询时,把任务分配到多个线程或协程加速查询吗?
Activity
yiqgao commentedon Jul 5, 2018
vote this
sth2018 commentedon Jul 5, 2018
多线程版https://github.com/sth2018/FastWordQuery
leetking commentedon Jul 7, 2018
@sth2018 谢谢开发,尝试一下
GarrisonBaird commentedon Jul 15, 2018
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.
finalion commentedon Aug 7, 2018
@GarrisonBaird 赞成,现在查询每个单词时会使用多线程对多个字典进行抓取,但是对多个单词同时进行抓取时,可能会导致接口被封。