News for hackers. Stuff that matters.
Re:We Put Half a Million Files in One Git Repository, Here’s... by nomilk on Thursday June 16, 2022 @02:36AM (#31763079)
> git status takes 10 seconds on average

> running these commands multiple times a day reduces the total productive time engineers have every day

I love the attention paid to this. Often opportunities to prioritise seemingly small efficiency gains are neglected.

At 10 seconds per command, an engineer that uses git status 50 times per day spends ~10 minutes per day waiting; an entire work week per year!! Well above the threshold warranting optimisation, and that doesn't even factor in distractions and context switching.

Re:We Put Half a Million Files in One Git Repository, Here’s... by codeyperson on Thursday June 16, 2022 @04:24AM (#31763672)
It’s actually even worse than that I think. If something takes over a certain amount of time, then I’m more likely to go do something else while I wait, like check Hackernews. And there goes 20 minutes.
Re:We Put Half a Million Files in One Git Repository, Here’s... by Sohcahtoa82 on Friday June 17, 2022 @02:48PM (#31782613)
I created a `beep` alias that just does `echo "\x07\x07\x07"` which triggers the system notification sound three times.

Then if I have a command that will take a while, like a stupidly long `git status`, I do `git status && beep`.

Re:We Put Half a Million Files in One Git Repository, Here’s... by AshamedCaptain on Thursday June 16, 2022 @07:49AM (#31764886)
I'm hoping at least you acknowledge this is _your_ problem, rather than a tooling problem or the like. You just can't expect everything to give you immediate feedback after a couple seconds.

This is something that's really a degradation of the newer generations of engineers, since I clearly remember the time where these "somethings" would never take less than a couple minutes, and people did not immediately flee to their nearest distraction, but actually planned their time around it. In fact, if you go further back, these "somethings" would have taken hours, and the older generations still got work done.

Re:We Put Half a Million Files in One Git Repository, Here’s... by pessimizer on Thursday June 16, 2022 @11:22AM (#31767135)
That's a lot of drama, existential angst, and nostalgia around the equivalent of "sometimes during the commercials I go to the bathroom, and when I do I sometimes miss a minute of the show because I don't get back in time."
Re:We Put Half a Million Files in One Git Repository, Here’s... by AshamedCaptain on Thursday June 16, 2022 @07:45AM (#31764854)
I used to work at a place where git status would take 2 minutes (or more). You just stop using it and rely more on your memory, or run in it parallel while you continue working on something else, etc.
Re:We Put Half a Million Files in One Git Repository, Here’s... by ngshiheng on Thursday June 16, 2022 @03:09AM (#31763286)
I'm glad I'm not the only one that thinks that way. Even ~3s every git status is driving me insane now.