---
title: "Fixing the Git Blame Beachball"
description: "Committing with many files open froze Zed for about 10 seconds."
url: "https://swe.quest/articles/fixing-the-git-blame-beachball-d67cc5c16a8fe68b"
canonical: "https://zed.dev/blog/git-blame-beachball"
source: "Zed"
published: "2024-05-06"
difficulty: "medium"
kind: "Incident"
reading_minutes: 3
tags: ["debugging","performance","concurrency","developer-tools"]
---

# Fixing the Git Blame Beachball

A post on [Zed](https://swe.quest/sources/zed.md), published 2024-05-06, 3 min read, Incident. Original: [https://zed.dev/blog/git-blame-beachball](https://zed.dev/blog/git-blame-beachball)

## Summary

Committing with many files open froze Zed for about 10 seconds. Instruments' Thread State and Narrative views showed the main thread stuck in a condition-variable wait and repeatedly woken by git. The cause was Inline Git Blame: it listened for git index changes in every open buffer, so one commit spawned 257 concurrent git processes. A priority inversion made it worse, because the 5ms block\_with\_timeout depended on a GPUI timer task scheduled below background tasks, so the main thread waited seconds instead of milliseconds. Both bugs were fixed in v0.133.7.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Concurrency](https://swe.quest/tags/concurrency.md) (Compilers & runtimes)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- condition variables
- thread priorities
- macOS profiling basics ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))

## Keywords

Zed, Instruments, git blame, GPUI, macOS, psynch\_cvwait

## Related posts

- [Zed Weekly: #23](https://swe.quest/articles/zed-weekly-23-d3ef49beb6d8eb22.md): Zed · 2023-10-13 · Medium · 7 min read · Developer tools, Rust, Concurrency, Frontend, Performance engineering
  Zed's weekly team update covers a fix for typing lag with autocomplete.
- [Zed Weekly: #29](https://swe.quest/articles/zed-weekly-29-41f27bba860d0170.md): Zed · 2023-12-15 · Medium · 6 min read · Rust, Memory management, Performance engineering, Frontend, Developer tools
  Zed's port to GPUI 2 is nearing daily usability, and the team is focused on frame-rendering performance measured by holding tab-switch at 60Hz key repeat.
- [May 18 Replit downtime](https://swe.quest/articles/may-18-replit-downtime-8ded63600c4e370b.md): Replit · 2023-05-20 · Medium · 4 min read · Incidents & postmortems, Go, Concurrency, Deployment, Configuration management
  A latent Go bug leaked RWMutex read-locks whenever a configuration kind had no handler.
- [Split Diffs are Here](https://swe.quest/articles/split-diffs-are-here-4b9f30e250f3fbbd.md): Zed · 2026-02-18 · Easy · 4 min read · Developer tools, Performance engineering, Version control
  Zed v0.224 makes split diffs the default, built on its multibuffer model where all changed files form one editable surface.
- [This Week at Zed Industries: #1](https://swe.quest/articles/this-week-at-zed-industries-1-0d07c1f998ae465c.md): Zed · 2023-01-23 · Medium · 4 min read · Developer tools, Performance engineering, Data structures, Rust
  Zed grew out of Xray, the experimental editor Nathan Sobo and Antonio worked on at GitHub in 2018, and this weekly update recaps the path from there to a company and a private alpha.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
