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

Issue 1585923004: 5X speed up of 'git cl format', which also speeds up 'git cl upload' (Closed)

Created:
4 years, 11 months ago by jkarlin
Modified:
4 years, 11 months ago
Reviewers:
agable
CC:
chromium-reviews, dpranke+depot_tools_chromium.org, iannucci+depot_tools_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

5X speed up of 'git cl format', which also speeds up 'git cl upload' 'git cl format' became very slow (7 seconds) after the Blink merge. 'git cl upload' is also slow when the presubmit requires formatting checks. This CL speeds up 'git cl format' by reducing the number of calls to 'git diff' and by removing the glob parameter. The glob parameter adds a couple of seconds as it scans the entire repository. Before: 'git cl format' takes 7 seconds After: 'git cl format' takes 1.25 seconds BUG=577647 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=298323

Patch Set 1 #

Patch Set 2 : Nit #

Patch Set 3 : Nit #

Patch Set 4 : Update comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -32 lines) Patch
M git_cl.py View 1 2 3 7 chunks +22 lines, -32 lines 0 comments Download

Messages

Total messages: 16 (11 generated)
jkarlin
agable@ PTAL, thanks!
4 years, 11 months ago (2016-01-14 13:22:23 UTC) #4
jkarlin
Ping agable!
4 years, 11 months ago (2016-01-20 18:36:26 UTC) #11
agable
Ooh, I have no idea why I haven't seen this on my dashboard. LGTM!
4 years, 11 months ago (2016-01-20 19:22:21 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1585923004/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1585923004/80001
4 years, 11 months ago (2016-01-20 19:30:20 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-20 19:32:22 UTC) #16
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
http://src.chromium.org/viewvc/chrome?view=rev&revision=298323

Powered by Google App Engine
This is Rietveld 408576698