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

找到耗时有点长,能改进吗? #18

Open
huage5 opened this issue Sep 17, 2019 · 5 comments
Open

找到耗时有点长,能改进吗? #18

huage5 opened this issue Sep 17, 2019 · 5 comments

Comments

@huage5
Copy link

huage5 commented Sep 17, 2019

运行了你的demo,自己也试了自己的图片,发现:找到并返回结果 这个过程总耗时有点长(我本机电脑试了几次,都在3s+),能改进吗?

@williamfzc
Copy link
Owner

可以调整 engine_template_scale 参数来加速
如果是 C/S 模式去部署的,也可能跟网络有关系

@Neoyanghc
Copy link

多个模板的时候,可以并发吗? 里面的逻辑是并发吗

@williamfzc
Copy link
Owner

多个模板的时候,可以并发吗? 里面的逻辑是并发吗

api可以同时提交多张模板,但里面的逻辑不是并发。
可以自行用线程进程去实现并发。

@Neoyanghc
Copy link

实现并发,每一个都要创建一个findit()吗?

@williamfzc
Copy link
Owner

实现并发,每一个都要创建一个findit()吗?

  • 没明白,贴个片段?
  • 不过理论上硬件条件是固定的,并发也并不能加速多少,并发是为了处理什么问题?

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

3 participants