3 ms·
Having worked on two major web browsers, I can tell you that they spend a surprisingly large proportion of their time measuring text. Drawing text is only half
by w0mbat 4y ago
Having worked on two major web browsers, I can tell you that they spend a surprisingly large proportion of their time measuring text. Drawing text is only half as much of the cycles spent. We got a significant speed boost at one point by reverse engineering an undocumented fast text measuring OS API that a rival browser was using.