-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
speed up build by paritioning (#150)
speed up build by paritioningNote the most elegant solution, but the best quick-win I could find with travis. ### Test Plan * run travis
- Loading branch information
1 parent
18fbacd
commit 7fcf733
Showing
4 changed files
with
78 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
regions: | ||
- us-west-2 | ||
|
||
account-blacklist: | ||
- "1" | ||
|
||
accounts: | ||
"119435350371": {} | ||
|
||
resource-types: | ||
# we can add to this over time | ||
targets: | ||
- RDSDBCluster | ||
- RDSSnapshot | ||
- RDSInstance |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env python | ||
|
||
import os, sys | ||
|
||
buckets = int(sys.argv[1]) | ||
bucket = int(sys.argv[2]) | ||
|
||
assert bucket < buckets | ||
|
||
b = [] | ||
|
||
for i in range(buckets): | ||
b.append([]) | ||
|
||
for i, line in enumerate(sys.stdin): | ||
for x in line.strip().split(): | ||
b[ i % buckets ].append(x) | ||
|
||
for pkg in b[bucket]: | ||
print(pkg) |