This repository was archived by the owner on Sep 12, 2018. It is now read-only.
Commit 3962264
Bo Shi
Use gevent to parallelize storage operations in get_tags
This is a band-aid for #614
For context, hosted from a GCE instance with GCS being the backing
store, With this patch, we are able to 'docker pull' 859 tags without a
timeout. Prior to this patch, we were *unable* to pull anything from a
repository with 200 tags. This is the extent of my investigation thus
far. Unfortunately, this change is probably just a constant factor
reduction in run-time as total network round-trips still grows linearly
with tag count.1 parent 388d303 commit 3962264
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
74 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
75 | 78 | | |
76 | | - | |
| 79 | + | |
| 80 | + | |
77 | 81 | | |
78 | 82 | | |
79 | 83 | | |
| |||
84 | 88 | | |
85 | 89 | | |
86 | 90 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
258 | | - | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
0 commit comments