#10295·jj

rebasing with a large number of conflicts is extremely slow

Author: yshuiCreated Sep 30, 2026Updated Sep 30, 2026

Description

While doing a large cleaning up work, I first modified a commit long into the past, ~300 commits deep. This created a large number of conflicts in the 300 descendant commits. I then go commit by commit and trying to fix those conflicts. And I do this standard way: jj new <conflicting commit>, make changes, then jj squash.

What I noticed is jj squash is starting to take longer and longer as I go. First it will complete in ~5 minutes, then 15 minutes, then 20 minutes. Right now it's been running for 35 minutes and still going.

The on disk size of .git is also exploding. it went from 2G before I started, to 21G right now.

Specifications

  • Platform: NixOS
  • Version: 0.45.1