新版chrome正在调整cpu使用率以延长电池寿命 – 十轮网-九游会官网真人游戏第一品牌

科技博客《about chromebooks》近日披露,google于正在测试中的chrome os添加了“快速密集计时器节流”(quick intensive timer throttling)功能,有望降低chrome os对cpu的使用率,并延长电池寿命。而该功能同样也适用chrome浏览器。

其实chrome团队从2020年的chrome 86,就开始测试“密集唤醒节流”(intensive wake up throttling)功能。当时是因为google发现许多网页都会于后台执行javascript timer(js timer),而且这些js timer每秒就会唤醒分页一次,虽然所使用的cpu资源不到1%,但其频繁度再加上众多的分页,即可能大量耗损cpu资源并降低电池续航力。

于是chrome团队设计了intensive wake up throttling机制,只要分页进入背景5分钟之后,便限制js timer每分钟只能唤醒分页一次。当时的实验显示,该机制可减少5倍的cpu使用率,并让电池寿命延长1.25个小时,之后intensive wake up throttling即成为chrome 88的默认功能。

这次该团队则是自chrome 103开始测试更高端的quick intensive timer throttling功能,它同样是基于intensive wake up throttling的概念,也是限制js timer每分钟只能唤醒分页一次,但把进入背景的5分钟缓冲时间缩短为10秒。换句话说,只要网页进入背景10秒钟之后,其js timer执行频率就会从每秒一次切换至1分钟1次。

根据chrome团队的测试,quick intensive timer throttling将能减少10%的cpu使用时间,进一步改善电池寿命。

quick intensive timer throttling于chrome 103中只是个实验功能,到了chrome 104即成为测试版功能,《about chromebooks》持续在chrome 105中发现它,意味着它很有机会成为正式功能。

发表评论