开发者

Why is the rendering of HTML a cpu intensive process?

开发者 https://www.devze.com 2023-02-06 14:11 出处:网络
It\'s been often stat开发者_JAVA百科ed that the gating factor in html rendering performance is cpu.I\'ve also seen this by individually increasing cpu speed, amount of memory and disk speed and the on

It's been often stat开发者_JAVA百科ed that the gating factor in html rendering performance is cpu. I've also seen this by individually increasing cpu speed, amount of memory and disk speed and the only change that impacts html rending is cpu,

Why is the rendering of HTML a cpu intensive process (or said a different way, why is cpu speed the gating factor in html rendering)?


Calculation of dimentions, spaces between elements, drawing small images, all that occurs while the browser is still loading the HTML page and maybe other resources, which also means several repositioning of those loaded elements. In very few situations you may get high memory page faults if large elements are found such as large SWF files or giant uncompressed images. But overall it's a process of calculation and recalculation, which CPU is the unit for the task.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号