# git_graph: Align CommitDataReader with batched commit processing \(\#54600\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/dd79ca048e7615234dad6e3aa9cdd4fe94893b35)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: dd79ca048e7615234dad6e3aa9cdd4fe94893b35

Requested commit: dd79ca048e7615234dad6e3aa9cdd4fe94893b35

Commit: dd79ca048e7615234dad6e3aa9cdd4fe94893b35

Tree: 0c8c792df28907f9a4fc554f13d6c5786a260271

Author: feeiyu

Committer: GitHub

## Message

```
git_graph: Align CommitDataReader with batched commit processing (#54600)

Self-Review Checklist:

- [X] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [ ] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [X] Performance impact has been considered and is acceptable

Updated `CommitDataReader::read` from single SHA to batched
input/output.
`run_commit_data_reader` is designed to process requests in batches, but
`CommitDataReader::read` previously only sent one SHA per call. So in
practice, commit data was effectively processed one-by-one from the
caller path.


The temporary debug logs show that batching was not performed
previously.

before:
<img width="607" height="154" alt="image"
src="https://github.com/user-attachments/assets/4f9d9041-6209-426f-be44-f28449504c80"
/>

after:
<img width="632" height="121" alt="image"
src="https://github.com/user-attachments/assets/43b349f3-7685-4786-af1e-2a640cdf8ccd"
/>


Release Notes:

- N/A

---------

Co-authored-by: Anthony Eid <56899983+Anthony-Eid@users.noreply.github.com>
Co-authored-by: Anthony Eid <anthony@zed.dev>
```

## Parents

- [067ec60e1a197fb02df7cf7be7ea1170d8faee1d](https://git.cafe/gitcafe/zed/commit/067ec60e1a197fb02df7cf7be7ea1170d8faee1d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/dd79ca048e7615234dad6e3aa9cdd4fe94893b35?format=markdown)
