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

Issue 1185793002: Parsing expectations for run-webkit-tests takes >20 seconds. (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 for run-webkit-tests takes >20 seconds. All this time is in TestExpecationsParser.parse on line 204: if expectation_line.path in self._full_test_list: Instead, use a dictionary so this lookup is O(1) instead of O(n). This saves 20-25 seconds on my desktop machine. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197078

Patch Set 1 #

Patch Set 2 : fix tests #

Patch Set 3 : use a set and rename variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -12 lines) Patch
M Tools/Scripts/webkitpy/layout_tests/models/test_expectations.py View 1 2 2 chunks +10 lines, -11 lines 0 comments Download
M Tools/Scripts/webkitpy/w3c/test_importer.py View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 15 (5 generated)
ojan
4 years, 10 months ago (2015-06-12 17:45:54 UTC) #2
joelo
lgtm
4 years, 10 months ago (2015-06-12 17:52:28 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185793002/20001
4 years, 10 months ago (2015-06-12 17:57:32 UTC) #5
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-12 17:57:36 UTC) #7
ojan
dpranke: owner lgtm plz when you get a chance.
4 years, 10 months ago (2015-06-12 18:13:37 UTC) #8
Dirk Pranke
nice! I'm surprised that we had anything like this left unoptimized. However, maybe this should ...
4 years, 10 months ago (2015-06-12 19:16:26 UTC) #9
Dirk Pranke
lgtm
4 years, 10 months ago (2015-06-12 19:16:46 UTC) #10
ojan
On 2015/06/12 at 19:16:26, dpranke wrote: > nice! I'm surprised that we had anything like ...
4 years, 10 months ago (2015-06-13 00:48:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185793002/40001
4 years, 10 months ago (2015-06-13 00:52:02 UTC) #14
commit-bot: I haz the power
4 years, 10 months ago (2015-06-13 02:13:30 UTC) #15
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197078

Powered by Google App Engine
This is Rietveld 408576698