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

Issue 233503002: gyp: avoid copying items that will be deleted. (Closed)

Created:
6 years, 8 months ago by Daniel Bratell
Modified:
6 years, 8 months ago
Reviewers:
Mark Mentovai, Nico
CC:
gyp-developer_googlegroups.com, scottmg
Base URL:
https://chromium.googlesource.com/external/gyp.git@master
Visibility:
Public.

Description

gyp: avoid copying items that will be deleted. We spent a few CPU seconds copying items we deleted a few lines further down. Seems a bit wasteful. This saves around 0.5 real world seconds for me. BUG=362075 R=mark@chromium.org r1904

Patch Set 1 #

Patch Set 2 : dontcopybeforedelete: Rebased to newer master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -17 lines) Patch
M pylib/gyp/input.py View 1 1 chunk +8 lines, -17 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Daniel Bratell
Ah, this was where I started. By noticing that we first copied and then deleted ...
6 years, 8 months ago (2014-04-10 16:41:43 UTC) #1
scottmg
another one I should probably pass to mark.
6 years, 8 months ago (2014-04-10 17:54:13 UTC) #2
Mark Mentovai
LGTM
6 years, 8 months ago (2014-04-16 12:57:34 UTC) #3
Nico
6 years, 8 months ago (2014-04-25 22:38:41 UTC) #4
Message was sent while issue was closed.
r1904

Powered by Google App Engine
This is Rietveld 408576698