Repository navigation
Commit a5d7049
perf(gix): reuse object streams for serialization readback
Commit and tree serialization wrote native objects, then launched a fresh
`git cat-file` process to read their bytes back. Read through `Repo.odb.stream`
instead so Gix can serve the object and the CLI backend can reuse its batch
reader. Existing large-object and unsupported-storage fallbacks still apply.
The fixed probe serializing one commit and one tree drops from 2 CLI launches
to 0 with Gix, excluding fixture setup. Regression assertions compare the
serialized bytes with Git and prohibit CLI launches during native readback.
The earlier whole-suite inventory contained 779 matching readbacks; that is
an optimization target, not a newly measured suite-wide reduction.
Validation: the affected commit, tree, object/index, merge and serialization
selection passed with Gix first (28 tests, 8.04s), then CLI (26 tests, one
skipped, 19.05s). Ruff lint/format and `git diff --check` passed.1 parent 47afff2 commit a5d7049
4 files changed
Lines changed: 15 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
850 | 850 | | |
851 | 851 | | |
852 | 852 | | |
853 | | - | |
854 | | - | |
855 | | - | |
856 | | - | |
857 | | - | |
858 | | - | |
859 | | - | |
| 853 | + | |
| 854 | + | |
860 | 855 | | |
861 | 856 | | |
862 | 857 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
| 423 | + | |
428 | 424 | | |
429 | 425 | | |
430 | 426 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
240 | 251 | | |
241 | 252 | | |
242 | 253 | | |
| |||
0 commit comments