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

Issue 2630723002: Fix blink_perf.paint regression about tables (Closed)

Created:
3 years, 11 months ago by a.suchit
Modified:
3 years, 10 months ago
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix blink_perf.paint regression about tables Performance was getting down because vector is accessing very frequently which becomes very costly when vector size is very big. PrimaryCellAt() is using very frequently and it was accessed same vector twice (first time used by numCols() and another one directly.). So now vector is accessed once and same reference is used for both statements/operations. numCols() is accessing the vector for getting the vector size and it was used in the loop iteration. So now it calls only once before the loop. BUG=679530 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2630723002 Cr-Commit-Position: refs/heads/master@{#447786} Committed: https://chromium.googlesource.com/chromium/src/+/3173daa005795ac280b23e2f89c612f0d93892fb

Patch Set 1 #

Patch Set 2 : Undo changes #

Patch Set 3 : Remove condition from primaryCellAt() #

Patch Set 4 : remove condition from primaryCellAt() and keep numCols() out of loop iteration. #

Patch Set 5 : Issues fixed in patch set 4 #

Total comments: 9

Patch Set 6 : Review comments addressed. #

Total comments: 2

Patch Set 7 : Review comments addressed #

Patch Set 8 : Rebase #

Patch Set 9 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -28 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutTable.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.h View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTableSection.cpp View 1 2 3 4 5 6 7 8 8 chunks +18 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/paint/TableSectionPainter.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXTable.cpp View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 50 (29 generated)
a.suchit
Please review.
3 years, 11 months ago (2017-01-20 02:49:48 UTC) #5
Xianzhu
lgtm I updated the subject.
3 years, 11 months ago (2017-01-20 03:32:23 UTC) #7
a.suchit
On 2017/01/20 03:32:23, Xianzhu wrote: > lgtm > > I updated the subject. Is the ...
3 years, 11 months ago (2017-01-20 03:35:17 UTC) #8
a.suchit
On 2017/01/20 03:35:17, a.suchit wrote: > On 2017/01/20 03:32:23, Xianzhu wrote: > > lgtm > ...
3 years, 11 months ago (2017-01-20 03:38:43 UTC) #9
Xianzhu
On 2017/01/20 03:35:17, a.suchit wrote: > On 2017/01/20 03:32:23, Xianzhu wrote: > > lgtm > ...
3 years, 11 months ago (2017-01-20 03:43:44 UTC) #12
Xianzhu
On 2017/01/20 03:43:44, Xianzhu wrote: > On 2017/01/20 03:35:17, a.suchit wrote: > > On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 05:10:56 UTC) #15
a.suchit
On 2017/01/20 05:10:56, Xianzhu wrote: > On 2017/01/20 03:43:44, Xianzhu wrote: > > On 2017/01/20 ...
3 years, 11 months ago (2017-01-20 05:26:03 UTC) #16
mstensho (USE GERRIT)
I tested a bit locally (without this CL applied), running the performance test: Before the ...
3 years, 11 months ago (2017-01-20 10:02:04 UTC) #17
a.suchit
https://codereview.chromium.org/2630723002/diff/80001/third_party/WebKit/Source/core/layout/LayoutTable.cpp File third_party/WebKit/Source/core/layout/LayoutTable.cpp (right): https://codereview.chromium.org/2630723002/diff/80001/third_party/WebKit/Source/core/layout/LayoutTable.cpp#newcode1493 third_party/WebKit/Source/core/layout/LayoutTable.cpp:1493: return section->primaryCellAt(cell->rowIndex(), effCol - 1); On 2017/01/20 10:02:04, mstensho ...
3 years, 11 months ago (2017-01-23 06:35:32 UTC) #18
mstensho (USE GERRIT)
Some explanatory text in the description that says what you're doing here would be good. ...
3 years, 11 months ago (2017-01-23 09:24:57 UTC) #19
a.suchit
https://codereview.chromium.org/2630723002/diff/100001/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp File third_party/WebKit/Source/core/paint/TableSectionPainter.cpp (right): https://codereview.chromium.org/2630723002/diff/100001/third_party/WebKit/Source/core/paint/TableSectionPainter.cpp#newcode193 third_party/WebKit/Source/core/paint/TableSectionPainter.cpp:193: for (unsigned c = dirtiedColumns.end(); c > dirtiedColumns.start(); c--) ...
3 years, 11 months ago (2017-01-23 11:19:01 UTC) #24
mstensho (USE GERRIT)
> Performance was getting down because vector was accesses very frequently > which becomes very ...
3 years, 11 months ago (2017-01-23 11:43:02 UTC) #27
a.suchit
On 2017/01/23 11:43:02, mstensho wrote: > > Performance was getting down because vector was accesses ...
3 years, 11 months ago (2017-01-23 12:28:11 UTC) #28
mstensho (USE GERRIT)
On 2017/01/23 12:28:11, a.suchit wrote: > On 2017/01/23 11:43:02, mstensho wrote: > > > Performance ...
3 years, 11 months ago (2017-01-23 12:43:19 UTC) #29
a.suchit2
On 2017/01/23 12:43:19, mstensho wrote: @mstenso, Please review it.
3 years, 10 months ago (2017-01-31 03:04:24 UTC) #37
mstensho (USE GERRIT)
lgtm
3 years, 10 months ago (2017-02-01 17:51:33 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630723002/160001
3 years, 10 months ago (2017-02-02 03:04:45 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/355318)
3 years, 10 months ago (2017-02-02 05:12:29 UTC) #43
dmazzoni
lgtm Thanks for the improvements to AXTable
3 years, 10 months ago (2017-02-02 16:36:21 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2630723002/160001
3 years, 10 months ago (2017-02-02 17:23:55 UTC) #47
commit-bot: I haz the power
3 years, 10 months ago (2017-02-02 17:28:54 UTC) #50
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3173daa005795ac280b23e2f89c6...

Powered by Google App Engine
This is Rietveld 408576698