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

Issue 2825253003: webkitpy: Improve performance of merge-results script. (Closed)

Created:
3 years, 8 months ago by mithro
Modified:
3 years, 8 months ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

webkitpy: Improve performance of merge-results script. This patch changes the JSON merging code to merge multiple things at once, rather than incrementally merging two things together. The performance improvement is significant, in walk clock time the change is; With 6 shards; Before - 1m3.957s After - 0m6.475s With 18 shards; Before - 1m57.577s After - 0m7.163s BUG=524758 Review-Url: https://codereview.chromium.org/2825253003 Cr-Commit-Position: refs/heads/master@{#465888} Committed: https://chromium.googlesource.com/chromium/src/+/731836e08488b3f4875dd5377dfb9bc01e67b21e

Patch Set 1 #

Total comments: 15

Patch Set 2 : Fixing for review. #

Total comments: 4

Patch Set 3 : Fixes. #

Patch Set 4 : Fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -133 lines) Patch
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py View 1 2 3 15 chunks +109 lines, -94 lines 0 comments Download
M third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results_unittest.py View 1 2 6 chunks +40 lines, -39 lines 0 comments Download

Messages

Total messages: 23 (15 generated)
mcgreevy
lgtm LGTM with optional nits. https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode191 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:191: ordered_keys = collections.OrderedDict.fromkeys( Why ...
3 years, 8 months ago (2017-04-19 06:57:20 UTC) #5
alancutter (OOO until 2018)
lgtm https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode163 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:163: """Merge two equal objects together.""" Remove "two". https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode172 ...
3 years, 8 months ago (2017-04-19 07:43:43 UTC) #9
mithro
https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode163 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:163: """Merge two equal objects together.""" On 2017/04/19 07:43:43, alancutter ...
3 years, 8 months ago (2017-04-19 08:38:39 UTC) #11
qyearsley
LGTM, great performance improvement :-) https://codereview.chromium.org/2825253003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/20001/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode339 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:339: beforen, new_json_data_n, aftern = ...
3 years, 8 months ago (2017-04-19 22:40:20 UTC) #15
mcgreevy
https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode191 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:191: ordered_keys = collections.OrderedDict.fromkeys( On 2017/04/19 at 08:38:39, mithro wrote: ...
3 years, 8 months ago (2017-04-20 00:08:25 UTC) #16
mithro
https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py File third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py (right): https://codereview.chromium.org/2825253003/diff/1/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py#newcode191 third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/merge_results.py:191: ordered_keys = collections.OrderedDict.fromkeys( On 2017/04/20 00:08:25, mcgreevy wrote: > ...
3 years, 8 months ago (2017-04-20 02:02:45 UTC) #17
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/2825253003/60001
3 years, 8 months ago (2017-04-20 02:06:23 UTC) #20
commit-bot: I haz the power
3 years, 8 months ago (2017-04-20 03:23:02 UTC) #23
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/731836e08488b3f4875dd5377dfb...

Powered by Google App Engine
This is Rietveld 408576698