Show HN: Git Heat Map – a tool for visualising git repo activity for each file
11–20 of 42 posts
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#12I wonder if this can somehow be used as a tool for quick visual inspection of architecture compliance. Maybe the size of the box could be selected before display to denote a custom metric. For example, if the size of the box for each file was proportional to the (number_of_lines_edited) * (current_date - file_creation_date), then modularity could demand that the size of the boxes remain small. (pardon the musings of…
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#13Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#14[1] https://repography.com/app/0/strawberry-graphql/strawberry/s...
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#15How much faster are your benchmarks using WAL mode? https://www.sqlite.org/wal.html
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#16Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#17Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#18How much faster are your benchmarks using WAL mode? https://www.sqlite.org/wal.html
I reviewed the OP's code and did some benchmarks; SQLite is not the bottleneck here. The code first generates the commit info from the git log, prints that to stdin [1] and the python script reads from it one by one in a loop [2]. Each of the commit info is written to SQLite. So, with or without WAL, the time is almost the same.
To confirm my hypothesis, I ran the project without insert calls. On my machine, for cpython, it took 160 seconds and without sqlite inserts 159 ish.
I believe the git log will be fast anyway, so other ways to make it faster would be to read a bunch of commits at once and then do batch inserts. We can also make it run in parallel since each commit info is independent, and we don't need to care about ordering while inserting.
[0] - https://avi.im/blag/2021/fast-sqlite-inserts/
[1] - https://github.com/jmforsythe/Git-Heat-Map/blob/bd9bc22/git-...
[2] - https://github.com/jmforsythe/Git-Heat-Map/blob/bd9bc22/git-...
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#19If you are an org with a large codebase and want to get many more insights, there is Seerene, it's commercial but takes the idea of repo analysis to the extremes (not affiliated, just a happy user) https://www.seerene.com/
[0] https://www.amazon.com/Books-Adam-Tornhill/s?rh=n%3A283155%2... [1] https://codescene.com/
Re: Show HN: Git Heat Map – a tool for visualising git repo activity for each file
#20This is cool. The visualization reminds me of the visualization of QDirStat/WinDirStat. Also shout out to the (mostly useless but cool looking) git history visualizer, Gource[0]. https://gource.io/
I'd say that Gource is actually pretty useful for figuring out where most of the effort has been concentrated recently! For example, when added to a new project, I might run it against the repo to see which packages in the project have been changed the most in the past month, what people are working on and so on.