3 ms·
git blame is always expansive to compute; and precomputing (or caching) it for every revision of every file is going to consume a lot of storage.
by progval 2y ago
git blame is always expansive to compute; and precomputing (or caching) it for every revision of every file is going to consume a lot of storage.
- Kinrany 2y agoPrecomputing git blame should take the same order of magnitude of storage as the repository itself. Same number of lines for each revision, same number of lines changed in every commit.
- benmmurphy 2y agoI guess for computationally expensive things the only real option is to put it behind a login. I’m sure this is something SourceHut doesn’t want to do but maybe it’s their only decent option.
- progval 2y agoOn SourceHut, git blame is available while logged out, but the link to blame pages is only showed to logged-in users. That may be a recent change to fight scrapers.