性能优化 #5
ucxn
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
5.9.9D版本最新增加的功能:
1.对正则表达式进行预编译,使得字面量重则被缓存,在循环频繁调用中减少上下文开销,将其提取到全局外层作用域,作为常量预编译,提升长期挂机的执行性能。
2.将字典创建改为无原型链,减轻不必要的分支开销
3.避免全局重排
4.使用requestAnimationFrame做法,使得和显示器的同步更加优雅
5.修复DOM界面的初次启动闪烁、空白,提升OOBE体验
6.优化字符串显示
7.使用JavaScript的ES2020可选链操作符语法,更改为三元表达式。
8.曾经为了避免在休眠后网速积分导致流量暴增,设置为0网速时段,排除该段时间作为区间值
新版允许手动设置轮询间隔,目前,当网速从有→有以及有➡️0均能正确判断,而从0到有的具体持续时长则选择估算。
This discussion was created from the release 性能优化.
Beta Was this translation helpful? Give feedback.
All reactions