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

简繁转换的性能问题 #7

Open
cangkuai opened this issue May 6, 2022 · 4 comments
Open

简繁转换的性能问题 #7

cangkuai opened this issue May 6, 2022 · 4 comments

Comments

@cangkuai
Copy link

cangkuai commented May 6, 2022

目前数据用的是类封装,但是在大量数据处理时会导致速度过慢,建议改为哈希值表。

@zmjack
Copy link
Owner

zmjack commented May 8, 2022

主要原因应该是搜索效率太慢。

现在加了一个缓存,读取过的字会加到缓存中,这样来提高地检索效率。

可以试试是否有所改善。

@cangkuai
Copy link
Author

能不能考虑一下多线程呢,我这边测试下来是都无响应了,cpu占用仍然只有10%。

@cangkuai
Copy link
Author

还有给一个建议,能不能加一个非中文字符检测,因为实际情况下难免会有非中文字符混入,vb的解决方法是非中文字符就原样输出

@zmjack
Copy link
Owner

zmjack commented May 23, 2022

多线程没有测过,我先看看。

非中文符目前是按原样输出的,有特殊情况输出会不同吗?

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

2 participants