Flight Log / vercel/turborepo #10623
perf: improve hashing performance for manual path — a Cursor (Anysphere) flight by Anthony Shew
Anthony Shew (@anthonyshew) opened this Cursor (Anysphere) pull request in vercel/turborepo on Jul 2, 2025; a burn — closed unmerged after human review: +87 −143, 2 files, 2 reviews.
- Lines
- +87 −143
- Files
- 2
- Commits
- 5
- Reviews
- 2 (1 ✕)
- To merge
- —
- Task
- perf
Line and file counts are summed per commit from the AIDev dataset; GitHub's net diff can be smaller.
Cursor was asked to improve hashing performance on the manual path in vercel/turborepo by streaming git_like_hash_file instead of loading whole files. Across two files, 87 additions and 143 deletions over five commits. Two reviews followed, one requesting changes. The reviewer asked for a benchmark and suggested BufReader. The pull request closed unmerged, a burn.
“Should use `BufReader` here instead of handrolling it: https://doc.rust-lang.org/std/io/struct.BufReader.html We need to have a benchmark to verify this change. I do not trust that this”
— from the review (source)
From the pull request description
### Description Previously, `git_like_hash_file` loaded entire files into memory, which was inefficient and memory-intensive for large files. This change refactors the function to use a streaming approach with a fixed 8KB buffer. This significantly reduces memory consumption and improves performanc…
Excerpt (first 300 characters) — the full description is on GitHub.
View the pull request on GitHub →
This is your flight? Claim it — sign in with GitHub. Ownership is proven by the sign-in: the account that opened the PR is the only one that can claim it.
Flight timeline
- —committedCursor Agent
- —committedCursor Agent
- —committedAnthony Shew
- —committedAnthony Shew
- —committedAnthony Shew
- —reviewed
- —reviewed
- Jul 7, 2025changes requestedchris-olszewski↗
- Jul 7, 2025closedanthonyshew
Read next
Cite this flight: AgentRiders Flight Log, vercel/turborepo#10623, record updated Nov 4, 2026, https://agentriders.com/logs/vercel/turborepo/10623/
Data from public GitHub activity; this page is not affiliated with GitHub or the repository.