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

Issue 235193002: gyp: use a set() in DeepDependencies for less O(n^2). (Closed)

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

Description

gyp: use a set() in DeepDependencies for less O(n^2). Another O(n^2) over the number of targets which used about half a second for a 1000 target system (chromium) on a reasonable computer. BUG=362075 r1899

Patch Set 1 #

Total comments: 1

Patch Set 2 : DeepDependency: Restore the ordering. #

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

Messages

Total messages: 8 (0 generated)
Daniel Bratell
Dependency management function searched through lists that were longer than expected when the code was ...
6 years, 8 months ago (2014-04-11 14:07:33 UTC) #1
Nico
https://codereview.chromium.org/235193002/diff/1/pylib/gyp/input.py File pylib/gyp/input.py (right): https://codereview.chromium.org/235193002/diff/1/pylib/gyp/input.py#newcode1613 pylib/gyp/input.py:1613: return dependencies DeepDependencies() now won't return results in deterministic ...
6 years, 8 months ago (2014-04-11 16:11:00 UTC) #2
Daniel Bratell
On 2014/04/11 16:11:00, Nico wrote: > https://codereview.chromium.org/235193002/diff/1/pylib/gyp/input.py > File pylib/gyp/input.py (right): > > https://codereview.chromium.org/235193002/diff/1/pylib/gyp/input.py#newcode1613 > ...
6 years, 8 months ago (2014-04-11 16:13:57 UTC) #3
Nico
On 2014/04/11 16:13:57, Daniel Bratell wrote: > On 2014/04/11 16:11:00, Nico wrote: > > https://codereview.chromium.org/235193002/diff/1/pylib/gyp/input.py ...
6 years, 8 months ago (2014-04-11 16:17:13 UTC) #4
scottmg
On 2014/04/11 16:17:13, Nico wrote: > On 2014/04/11 16:13:57, Daniel Bratell wrote: > > On ...
6 years, 8 months ago (2014-04-11 16:30:42 UTC) #5
Daniel Bratell
Rather than worrying about whether the ordering is important or not, I changed the code ...
6 years, 8 months ago (2014-04-15 14:58:17 UTC) #6
Nico
lgtm
6 years, 8 months ago (2014-04-15 17:46:08 UTC) #7
Nico
6 years, 8 months ago (2014-04-16 15:36:08 UTC) #8
r1899

Powered by Google App Engine
This is Rietveld 408576698