optimise reconcileStaged with git cat-file streaming
authorJoey Hess <joeyh@joeyh.name>
Mon, 7 Jun 2021 18:51:38 +0000 (14:51 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 7 Jun 2021 19:26:48 +0000 (15:26 -0400)
commit6ceb31a30a52775f9a5e752f9f6221762d73a47e
tree6d0102a3b0e9d60b22286a7c760a6449cc704f0b
parent70dbe61fc2b4d74447f5d2ef1f99e72bc6e2a02e
optimise reconcileStaged with git cat-file streaming

Commit 428c91606b434512d1986622e751c795edf4df44 made it need to do more
work in situations like switching between very different branches.

Compare with seekFilteredKeys which has a similar optimisation. Might be
possible to factor out the common part from these?

Sponsored-by: Dartmouth College's Datalad project
Database/Keys.hs
doc/todo/speed_up_keys_db_update_with_git_streaming.mdwn