-
Notifications
You must be signed in to change notification settings - Fork 840
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
内存占用 #53
Comments
能上传一下测试代码吗? |
代码在这里,我尽快上传一份可以复现的最小代码。 https://github.com/Wox-launcher/Wox/blob/master/Wox.Infrastructure/Alphabet.cs#L41-L47 |
仔细研究代码后,PinyinDict是懒加载,只加载一次,最多消耗87M,使用WordsSearchEx来加载可降低到40M,感觉是多线程(并发情况下)没有加锁。 |
@toolgood |
已修改,最新使用3.0.1.2 版本 |
我看了一下Wox使用内存在140M左右 |
感谢,确认已修复。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,
使用了你的库 c# 版本,发现内存占用很大。
程序启动的时候调用二十次左右
WordsHelper.GetFirstPinyin
,内存占用会飙升至 1G 左右。有什么好办法可以减小内存占用吗?
memory profile 结果
The text was updated successfully, but these errors were encountered: