# Use diff summary for action log stats instead of iterating hunks \(\#61272\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ccae8950debc3fb7645dd5e3896a1ce14262b735

Requested commit: ccae8950debc3fb7645dd5e3896a1ce14262b735

Commit: ccae8950debc3fb7645dd5e3896a1ce14262b735

Tree: 84a88311fc74214c45bcd92a631d24f3e932d6f8

Author: Cole Miller

Committer: GitHub

## Message

```
Use diff summary for action log stats instead of iterating hunks (#61272)

The diff already has a constant-time accessor to get the counts of
added/removed rows, use that instead of iterating hunks on the
foreground.

Release Notes:
- Improved performance in agent threads with many file changes.
```

## Parents

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

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