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

读写json文件存在严重性能问题 #1747

Closed
trump888 opened this issue Aug 17, 2021 · 4 comments
Closed

读写json文件存在严重性能问题 #1747

trump888 opened this issue Aug 17, 2021 · 4 comments

Comments

@trump888
Copy link

trump888 commented Aug 17, 2021

当订阅中条数很多时(4000+),写入本地guiNConfig.json就会占用大量io资源,最终生成一个5MB不到的文件需要花费数分钟之久,包括排序删除列表都会耗费大量时间,有任务管理器截图为证
屏幕截图(37)

@trump888
Copy link
Author

建议现在内存中先处理完了,再一次性整批写入,不要操作一条,写入一条,就算最快的ssd也经不起这样折腾

@vsouild
Copy link

vsouild commented Aug 26, 2021

🤣测试攻城狮进酒吧了(实际使用时几乎不会用到数千条节点吧

@trump888
Copy link
Author

用sqlite来管理的话的话会变得简单

@2dust
Copy link
Owner

2dust commented Oct 4, 2021

@2dust 2dust closed this as completed Oct 4, 2021
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