DescriptionCache length in ElementData::getAttributeItemIndex() for performance
Cache length in ElementData::getAttributeItemIndex() for performance.
We should avoid to call ElementData::length() in a loop as it hides an
if check to see if the ElementData is unique or not.
I see a 2.8% improvement on Bindings/id-setter.html performance test on
Linux desktop. This minimizes the performance regression caused by
r157508.
R=arv, esprehn
BUG=293663
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163216
Patch Set 1 #
Total comments: 1
Patch Set 2 : Add comments #Messages
Total messages: 8 (0 generated)
|