None
DE
Fixing the Git Blame Beachball
[]
Zed Industries - Blog
Thread State instruments showing the main thread is blocked. Unfortunately, because git blame is now enabled for every file, and we had 257 files open, every time I changed the git index by committing, Zed would spawn 257 git processes simultaneously. In order to wake up the main thread after a few milliseconds, we spawn a background task that sleeps for the required time, and then signals (via the condition variable) the main thread to resume.