Commit 4f5805f
[ruby/rubygems] Run git operations in parallel (take 2):
- In ruby#9100, I opened a patch to run git operations in parallel in
order to download git gems more quickly.
The parallelization doesn't works when resolving is not needed due
to a premature call to `source.specs` hit by this codepath.
You can reproduce the problem and see that the gems aren't
downloaded in parallel if you have an existing Gemfile and
Gemfile.lock. (In my first patch, I forgot to try when a
Gemfile.lock already existed).
I'd like to introduce a new call to `prelad_git_sources`, when
bundler hits the "missing specs" branch.
I unforunately couldn't find a single place where we could preload
git sources due to the `source.specs` that is called at different
path.
ruby/rubygems@f25b40f21f1 parent 3896dbc commit 4f5805f
1 file changed
Lines changed: 13 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
1125 | 1126 | | |
1126 | 1127 | | |
1127 | 1128 | | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
1131 | 1140 | | |
1132 | 1141 | | |
1133 | 1142 | | |
| |||
1144 | 1153 | | |
1145 | 1154 | | |
1146 | 1155 | | |
1147 | | - | |
1148 | | - | |
1149 | | - | |
1150 | | - | |
1151 | | - | |
| 1156 | + | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | 1159 | | |
| |||
0 commit comments