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

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

Open
leetking opened this issue Jun 17, 2018 · 5 comments
Open

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

leetking opened this issue Jun 17, 2018 · 5 comments

Comments

@leetking
Copy link

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

@yiqgao
Copy link

yiqgao commented Jul 5, 2018

vote this

@sth2018
Copy link

sth2018 commented Jul 5, 2018

@leetking
Copy link
Author

leetking commented Jul 7, 2018

@sth2018 谢谢开发,尝试一下

@GarrisonBaird
Copy link
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.

@finalion
Copy link
Owner

finalion commented Aug 7, 2018

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

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

5 participants