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

Issue 18541006: If we're running in nohooks mode, don't bother to accumulate file_list in gclient. (Closed)

Created:
7 years, 5 months ago by iannucci
Modified:
7 years, 5 months ago
Reviewers:
szager1
CC:
chromium-reviews, Dirk Pranke, cmp-cc_chromium.org, M-A Ruel, iannucci+depot_tools_chromium.org
Visibility:
Public.

Description

If we're running in nohooks mode, don't bother to accumulate file_list in gclient. This enables significant time savings, especially since file_list only exists to enable file-specific hooks (which, AFAIK, nothing actually uses). On a z620 (linux) using the cached git repos, a first-time `gclient sync --nohooks` takes: * (with) 131.06s user 14.10s system 117% cpu 2:03.89 total * (without) 482.13s user 189.35s system 144% cpu 7:45.63 total This change makes nohooks cause file_list to be None if we don't need to accumulate it, and updates GitWrapper and SvnWrapper appropriately. R=szager@chromium.org BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=210026

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebase and mark the rest of the optional args #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -34 lines) Patch
M gclient.py View 1 3 chunks +5 lines, -4 lines 0 comments Download
M gclient_scm.py View 1 18 chunks +37 lines, -30 lines 0 comments Download
M scm.py View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
iannucci
7 years, 5 months ago (2013-07-03 09:08:11 UTC) #1
szager1
lgtm (cringe) with nits. This is a good change, but this code is fragile and ...
7 years, 5 months ago (2013-07-03 17:22:40 UTC) #2
iannucci
Frankly, I'm inclined to rip the entire file_list crap out. It's inefficient, and it's not ...
7 years, 5 months ago (2013-07-03 18:37:40 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/iannucci@chromium.org/18541006/9001
7 years, 5 months ago (2013-07-03 19:39:27 UTC) #4
commit-bot: I haz the power
7 years, 5 months ago (2013-07-03 19:41:05 UTC) #5
Message was sent while issue was closed.
Change committed as 210026

Powered by Google App Engine
This is Rietveld 408576698