DescriptionReturn early for vec.remove(position, 0).
If the item range being removed has no extent, no item is removed
from the vector. Return early, if so.
Style invalidation uses this Vector remove() operation upon restoring
state (RecursionCheckpoint), with the length being zero often.
Optimize its handling.
The performance of blink_perf.css.ClassInvalidation and
blink_perf.css.ClassDescendantSelector is improved 15-20% as a result
(without Oilpan, windows + linux64.)
R=haraken
BUG=
Committed: https://crrev.com/38b1397ba7eace722265035ef6b584b2a8f450c8
Cr-Commit-Position: refs/heads/master@{#351029}
Patch Set 1 #Patch Set 2 : add unit test #
Messages
Total messages: 10 (2 generated)
|