Commit f6415e4
authored
Fix regression from batch object downloads (#824)
This is a fix for a performance regression introduced by #822. That
change updated the packfile installation process to call a different
packfile installation method after some upstream changes to the packfile
data structures.
However, while I thought I read the new packfile methods as including a
modification of the MRU cache, it apparently does not fully install the
packfile in the list.
This manifests in something like `git checkout` where the missing blobs
are queued for download, downloaded in blob packfiles, and then the
checkout process continues. During the process of writing the data to
the worktree, the "updating files" progress indicator slows to a crawl
because it was "missing" the blobs and then downloaded them on-demand.
This fixes the issue by being less fancy about packfiles and using
`packfile_store_reprepare()` to just reset the full packfile list. This
is more future-proof and isn't very expensive compared to the packfile
download.
I augmented a test to include tracing that shows a necessary blob is
queued for packfile download and is not later downloaded via an
immediate request. Without the code change, that test would fail.
* [X] This change only applies to interactions with Azure DevOps and the
GVFS Protocol.2 files changed
+19
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 194 | | |
224 | 195 | | |
225 | 196 | | |
| |||
279 | 250 | | |
280 | 251 | | |
281 | 252 | | |
282 | | - | |
283 | 253 | | |
284 | 254 | | |
285 | 255 | | |
| |||
300 | 270 | | |
301 | 271 | | |
302 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
303 | 276 | | |
304 | 277 | | |
305 | 278 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
| 1294 | + | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
1288 | 1298 | | |
1289 | 1299 | | |
1290 | 1300 | | |
1291 | 1301 | | |
1292 | 1302 | | |
1293 | 1303 | | |
| 1304 | + | |
1294 | 1305 | | |
1295 | 1306 | | |
1296 | | - | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
1297 | 1312 | | |
1298 | 1313 | | |
1299 | 1314 | | |
| |||
0 commit comments