Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Issue 1370933002: Return early for vec.remove(position, 0). (Closed)

Created:
5 years, 2 months ago by sof
Modified:
5 years, 2 months ago
Reviewers:
tkent, haraken
CC:
blink-reviews, blink-reviews-wtf_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Return 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -0 lines) Patch
M third_party/WebKit/Source/wtf/Vector.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/wtf/VectorTest.cpp View 1 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
sof
please take a look. For the tests mentioned in the description, the improvement seen with ...
5 years, 2 months ago (2015-09-27 07:14:24 UTC) #2
haraken
LGTM > The performance of blink_perf.css.ClassInvalidation and > blink_perf.css.ClassDescendantSelector is improved 15-20% as a result. ...
5 years, 2 months ago (2015-09-27 14:30:38 UTC) #3
sof
On 2015/09/27 14:30:38, haraken wrote: > LGTM > > > The performance of blink_perf.css.ClassInvalidation and ...
5 years, 2 months ago (2015-09-27 14:34:11 UTC) #4
haraken
On 2015/09/27 14:34:11, sof wrote: > On 2015/09/27 14:30:38, haraken wrote: > > LGTM > ...
5 years, 2 months ago (2015-09-27 14:55:49 UTC) #5
sof
On 2015/09/27 14:55:49, haraken wrote: > On 2015/09/27 14:34:11, sof wrote: > > On 2015/09/27 ...
5 years, 2 months ago (2015-09-27 15:05:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1370933002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1370933002/20001
5 years, 2 months ago (2015-09-28 05:09:51 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-28 07:12:58 UTC) #9
commit-bot: I haz the power
5 years, 2 months ago (2015-09-28 07:13:37 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/38b1397ba7eace722265035ef6b584b2a8f450c8
Cr-Commit-Position: refs/heads/master@{#351029}

Powered by Google App Engine
This is Rietveld 408576698