We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
一直存在
Windows
打开性能监控,随时间页面越来越卡,类似如下的代码 data: props.procFps.map((obj) => { return moment(new Date(obj.timeStamp)).format('HH:mm:ss'); }), 每次有新的性能数据传输过来的时候,会新构建出一个array数组,随着时间越来越长,该map的长度也越来越大,最后构建出数组的速度也越来越慢,还会伴随着碎片内存的产生,也增加了GC的压力。不应该使用Map生成数组,而是应该有固定的数组初始化,每次接收数据push到数组中,然后直接将数组设置给echarts的对应options结构中。
data: props.procFps.map((obj) => { return moment(new Date(obj.timeStamp)).format('HH:mm:ss'); }),
The text was updated successfully, but these errors were encountered:
#297 (review)
Sorry, something went wrong.
No branches or pull requests
Search before asking
Sonic version
一直存在
Deploy platform
Windows
Minimal reproduce step
打开性能监控,随时间页面越来越卡,类似如下的代码
data: props.procFps.map((obj) => { return moment(new Date(obj.timeStamp)).format('HH:mm:ss'); }),
每次有新的性能数据传输过来的时候,会新构建出一个array数组,随着时间越来越长,该map的长度也越来越大,最后构建出数组的速度也越来越慢,还会伴随着碎片内存的产生,也增加了GC的压力。不应该使用Map生成数组,而是应该有固定的数组初始化,每次接收数据push到数组中,然后直接将数组设置给echarts的对应options结构中。
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: