News for hackers. Stuff that matters.
Re:Git’s database internals I: packed object store by dunham on Monday August 29, 2022 @02:07PM (#32641416)
Many years ago, I wrote a some code that made pack files with out of order copy commands. (Just messing around in Go trying to learn how pack files worked.)

I was too lazy to implement the diffing algorithm, so I used the suffixarray from the go standard library and greedily grabbed the longest match at each point in the input. It's been a while, but I think I got a 12% improvement on my test case. (Probably wouldn't do that well in general.)

I'm assumed the git code just runs off of a diff (longest common substring), but I never checked.

There are no comments on this comment yet.