-
Notifications
You must be signed in to change notification settings - Fork 303
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
提升搜索速度的建议 #44
Comments
这位师傅厉害,回头我学习下看看合并进来!感谢! |
@SuxueCode https://github.com/xaoyaoo/PyWxDump 这个里面 还有一个把手机型号作为搜索特征的方法。
测试下来前两个最快,基本上在1ms以内就完成了。 |
123点方法现在已经全部失效了 |
亲测3.9.9.43版本三个方法都有效。 |
囧,跑了一下还真是,之前有一段时间接到批量反馈说不行了 |
不用刻意去维护,减少搜索时间的技巧是缩小内存范围,可以找一些大概的特征去限定下,速度就上来了。 |
对代码做了一些优化,目前测试提高了近50倍(另外使用了缓存以及缩短了搜索范围),贴一下,作为参考:
外部使用时:
The text was updated successfully, but these errors were encountered: