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

添加进程池支持 #94

Merged
merged 1 commit into from
Apr 14, 2024

Conversation

oxidationreduction
Copy link
Contributor

目前默认 5 进程并发,因为腾讯地图 api 默认并发量就是每秒 5 次。实测加速效果显著。

后续可以加个菜单项设置并发进程数,或者默认使用 os.cpu_count() 的一半。

@oxidationreduction
Copy link
Contributor Author

腾讯地图 api 可以用于逆地址转换,用GPS得到地址名称,但是这个功能需要api key,不适合公开放到代码里,所以没有提交。

@leslievan leslievan merged commit b69a3d7 into leslievan:main Apr 14, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants