Chromium Code Reviews
DescriptionSwitch to code-driven conversion of CSS unit type names.
The smaller set of CSS unit type names can be resolved without having
to go via a temporary string which is then (hashedly) looked up in a map.
Instead encode the lookup operation in code, avoiding the allocation of
temporary strings and their hashing for each conversion.
Loading content from mainstream sites results in this unit type
conversion operation being performed somewhere in the [5k, 20k] range.
R=
BUG=
Patch Set 1 #Patch Set 2 : case folding #Patch Set 3 : tighten length checks #Patch Set 4 : drop redundant namespace prefix #
Messages
Total messages: 3 (1 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||