WordQuery icon indicating copy to clipboard operation
WordQuery copied to clipboard

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

Open leetking opened this issue 7 years ago • 5 comments

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

leetking avatar Jun 17 '18 13:06 leetking

vote this

yiqgao avatar Jul 05 '18 02:07 yiqgao

多线程版https://github.com/sth2018/FastWordQuery

sth2018 avatar Jul 05 '18 06:07 sth2018

@sth2018 谢谢开发,尝试一下

leetking avatar Jul 07 '18 08:07 leetking

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.

GarrisonBaird avatar Jul 15 '18 16:07 GarrisonBaird

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

finalion avatar Aug 07 '18 13:08 finalion