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库 #8

Open
Hstb1230 opened this issue Mar 5, 2020 · 3 comments
Open

更换json库 #8

Hstb1230 opened this issue Mar 5, 2020 · 3 comments

Comments

@Hstb1230
Copy link
Owner

Hstb1230 commented Mar 5, 2020

现在使用的json库为JS对象,据一些用户反馈消息量很大时(指同时接收几百个群消息)会消耗大量CPU资源(单核CPU)

@Hstb1230
Copy link
Owner Author

Hstb1230 commented Mar 5, 2020

JS的json库在生成大量数据时时间开销过大,生成一个3k人的群成员信息列表,从酷Q获取数据不到3s,但是生成json数据花了几分钟,严重超时。

这个问题已经使用自己写的json库解决,时间消耗在5s左右。

但目前该json库存在边界识别问题,遇到只有CQ码时会多生成一个「,」,等待修复。

@Hstb1230
Copy link
Owner Author

Hstb1230 commented Mar 6, 2020

边界识别问题已修复

@Hstb1230
Copy link
Owner Author

等待造轮子(指json库)

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

1 participant