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

Issue 216753002: Cleanup run-bindings-tests and use filecmp (23% faster r-b-t) (Closed)

Created:
6 years, 9 months ago by Nils Barth (inactive)
Modified:
6 years, 9 months ago
Reviewers:
haraken
CC:
blink-reviews, terry, Daniel Bratell
Visibility:
Public.

Description

Cleanup run-bindings-tests and use filecmp (23% faster r-b-t) The use of filecmp: * speeds up r-b-t by 23% (if no diffs): (885 ms vs. 1.150 sec) * uses only 1 process (if no diffs): 30 => 1 * if diffs, same speed (can't measure difference, because filecmp is basically instantaneous on my machine) Also some cleanup: * remove dead code * simplify temp file handling (caused build bot failures previously) * don't catch exceptions, so easier to debug errors in CG (because it's just one process now) Currently r-b-t launches a separate diff(1) process for each file it compares. Python has a built-in diff facility, which is extremely fast and avoids other processes. This should make a big difference on Windows, meaning faster uploads for Windows developers and less load on build bots. Also a lot of the code is no longer necessary, after Terry's simplifications. We can eliminate all the redundant temp file handling, and just need a simple temp dir class. R=haraken BUG=341748 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170315

Patch Set 1 #

Patch Set 2 : Comment #

Patch Set 3 : More cruft #

Total comments: 6

Patch Set 4 : More cruft #

Patch Set 5 : Revised #

Patch Set 6 : Revised #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -87 lines) Patch
M Tools/Scripts/webkitpy/bindings/main.py View 1 2 3 4 5 9 chunks +39 lines, -87 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Nils Barth (inactive)
Quick cleanup, speedup, and robustness.
6 years, 9 months ago (2014-03-28 10:03:06 UTC) #1
haraken
LGTM. https://codereview.chromium.org/216753002/diff/2/Tools/Scripts/webkitpy/bindings/main.py File Tools/Scripts/webkitpy/bindings/main.py (right): https://codereview.chromium.org/216753002/diff/2/Tools/Scripts/webkitpy/bindings/main.py#newcode84 Tools/Scripts/webkitpy/bindings/main.py:84: # contains unknown files (it isn't aren't empty), ...
6 years, 9 months ago (2014-03-28 10:33:18 UTC) #2
Nils Barth (inactive)
Revised, thanks! https://codereview.chromium.org/216753002/diff/2/Tools/Scripts/webkitpy/bindings/main.py File Tools/Scripts/webkitpy/bindings/main.py (right): https://codereview.chromium.org/216753002/diff/2/Tools/Scripts/webkitpy/bindings/main.py#newcode84 Tools/Scripts/webkitpy/bindings/main.py:84: # contains unknown files (it isn't aren't ...
6 years, 9 months ago (2014-03-28 10:47:25 UTC) #3
Nils Barth (inactive)
The CQ bit was checked by nbarth@chromium.org
6 years, 9 months ago (2014-03-28 10:47:44 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/216753002/90001
6 years, 9 months ago (2014-03-28 10:47:46 UTC) #5
commit-bot: I haz the power
6 years, 9 months ago (2014-03-28 11:47:24 UTC) #6
Message was sent while issue was closed.
Change committed as 170315

Powered by Google App Engine
This is Rietveld 408576698