Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(21)

Issue 1182253003: Parsing expectations is n^2 in the number of tests per line. (Closed)

Created:
4 years, 10 months ago by ojan
Modified:
4 years, 10 months ago
Reviewers:
Dirk Pranke, joelo
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Parsing expectations is n^2 in the number of tests per line. When merging expectations in different expectations files, we do an n^2 operation. For each line/test combination, we merge them. Instead, this algorithm only needs to merge a given pair of lines once. Add a cache of merged lines so that we reuse merged lines when we've already seen a given pair. This hits our current code base because we have ~25k slimmingpaint tests that are skipped in TestExpectations. Then running with "-i virtual" on the commandline creates a fake expectations model to merge with that. On my z620, this patch takes the time to merge the models from >4 minutes to ~2 seconds. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197278

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Patch Set 3 : improve comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -3 lines) Patch
M Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py View 1 2 2 chunks +21 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (11 generated)
ojan
4 years, 10 months ago (2015-06-13 00:07:32 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182253003/1
4 years, 10 months ago (2015-06-13 01:14:53 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2015-06-13 02:46:00 UTC) #6
joelo
lgtm
4 years, 10 months ago (2015-06-15 16:45:29 UTC) #7
Dirk Pranke
https://codereview.chromium.org/1182253003/diff/1/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py File Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py (right): https://codereview.chromium.org/1182253003/diff/1/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py#newcode568 Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py:568: # This code is n^2 in the number of ...
4 years, 10 months ago (2015-06-15 22:50:59 UTC) #8
ojan
https://codereview.chromium.org/1182253003/diff/1/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py File Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py (right): https://codereview.chromium.org/1182253003/diff/1/Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py#newcode568 Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py:568: # This code is n^2 in the number of ...
4 years, 10 months ago (2015-06-17 17:16:54 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182253003/40001
4 years, 10 months ago (2015-06-17 17:17:26 UTC) #12
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
4 years, 10 months ago (2015-06-17 17:17:30 UTC) #14
ojan
Dirk, please take another look when you get a chance.
4 years, 10 months ago (2015-06-17 17:52:45 UTC) #15
Dirk Pranke
lgtm, thanks.
4 years, 10 months ago (2015-06-17 18:25:01 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182253003/40001
4 years, 10 months ago (2015-06-17 18:31:36 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59297)
4 years, 10 months ago (2015-06-17 18:44:59 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182253003/40001
4 years, 10 months ago (2015-06-17 18:51:52 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/59306)
4 years, 10 months ago (2015-06-17 19:05:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182253003/40001
4 years, 10 months ago (2015-06-17 19:13:58 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2015-06-17 20:21:39 UTC) #27
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197278

Powered by Google App Engine
This is Rietveld 408576698