You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It might have performance issues related to this part of the code. However, this code has been used for many years, and it was not introduced by the v1.x upgrade in the past year.
1.x版本的
puppet-wechat
新增了一个消息的属性mentionIdList
,顾名思义是获取消息中mention的用户id,但是正是因为有这个方法,会导致消息延时严重,我本地测试了一下,在没有@人的情况下时间是 0.577ms,当在群里有一个@的时候时间已经是6.3s,测试时间截图
主要影响的方法:
测试后发现如果有@人员,会导致循环所有群内成员,如果遇到同名群,会循环查询多次,而这个查询同样是耗时操作,最后导致消息事件延时严重,目前正寻找解决方法,同时希望能得到 @huan 的帮助来一块看一下
The text was updated successfully, but these errors were encountered: