diff options
author | James Bellamy <j.bellamy99@gmail.com> | 2022-03-21 19:15:01 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-25 21:32:19 +0100 |
commit | 7ab62ecd16fe7bb86676d9d56a66d919e48cf685 (patch) | |
tree | ffbb0320687dc7208a14205bb1a4e814219d8191 /Ports/ed | |
parent | 4f786a7f6676df4cd2b3472f32e965727a95dc9e (diff) | |
download | serenity-7ab62ecd16fe7bb86676d9d56a66d919e48cf685.zip |
LibWeb: When painting, reduce computation cost by using the reciprocal
Rather than dividing the rect width and high by the border lengths,
this change multiples those lengths by the reciprocal of the width
and height because this is a faster operation. When mousing around on
the html spec website, the profile showed that inline painting
went from ~15% to ~3%
Diffstat (limited to 'Ports/ed')
0 files changed, 0 insertions, 0 deletions