Read a file's older versions sixteen at a time when saying why each line is there
Before adoption: this commit came in with the history the project adopted, so no landing records it.
- Live on dev-oscabriel after 73adbab: why's first view fell to 19 s on click and 23 s on changesets, but took 40 s on ky's source/core/Ky.ts, a file most of whose 200 scanned commits changed: the blame read each older version's blob one after another. - whyView now reads the older versions in batches of `READS_AT_ONCE`, then traces each batch in order and stops once every line has its commit; at most 16 texts of at most 1 MiB are held at once. - Test (red first by assertion, "expected 1 to be greater than or equal to 8"): code-why.test.ts "reads the file's older versions several at a time", over `growingHistory(40)` (each commit appends a line, so every version is read) and `overlappingTrees(…, "blob")`.
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
3 files+103 added−18 removed
- tests:+84 added−10 removed
- other:+19 added−8 removed