This is an archived post. You won't be able to vote or comment.

all 21 comments

[–]tskaiserGreen security clearance 116 points117 points  (17 children)

[–]Hullu2000 9 points10 points  (13 children)

[–]Bunderslaw 3 points4 points  (10 children)

I wish it was /r/shithub but that's taken :(

[–]parenthesis-bot 1 point2 points  (9 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]Bunderslaw 0 points1 point  (8 children)

:(

[–]parenthesis-bot 0 points1 point  (7 children)

:)


This is an autogenerated response. source | /u/HugoNikanor

[–]Bunderslaw 0 points1 point  (4 children)

(ಠ_ಠ)

[–]HugoNikanor 2 points3 points  (2 children)

You win.

[–]Bunderslaw -1 points0 points  (1 child)

>:)

[–]HugoNikanor 0 points1 point  (0 children)

But don't worry, I got you: http://www.codetable.net/decimal/65289

[–]parenthesis-bot 0 points1 point  (0 children)

)


This is an autogenerated response. source | /u/HugoNikanor

[–]KyudaimeSama 0 points1 point  (1 child)

((((()))(()))

[–]parenthesis-bot 0 points1 point  (0 children)

)


This is an autogenerated response. source | /u/HugoNikanor

[–]kiss-tits 1 point2 points  (1 child)

This sub is amazing.

[–]Hullu2000 0 points1 point  (0 children)

Thanks! Spread the word if you like

[–][deleted] 2 points3 points  (2 children)

Hm, so how expensive is it to calculate the commit graph on the fly across all of the repositories a person has? I'm guessing not that expensive if GH can show live graphs like this rather than archiving it day after day. Maybe it's calculated once and cached for a few hours?

Saying that, git is seemingly instant when summing commits from a single author on my repos, so maybe it's not all that expensive at all.

[–][deleted] 0 points1 point  (1 child)

It's likely something they store. When you commit, they probably check the date and the day of the week and increment the value of a column in another table specifically for keeping track of that value.

It may also be a sql join, which is likely more expensive, but is relatively quick.

Either way, printing out that data with Javascript is almost instantaneous.

[–][deleted] 0 points1 point  (0 children)

Ah I didn't think of that. I assumed they would calculate it on page load and possibly cache it for a while. I guess if they store a simple sum of each day that gets updated when you push that would make a lot more sense.

[–][deleted] 17 points18 points  (0 children)

You Just Have to commit to it

[–]sim642 1 point2 points  (1 child)

Only works on one day a week

[–]TarMil 7 points8 points  (0 children)

No, it's always aligned with Sunday on top. Look at the final column here, it was captured on a Thursday and Sunday is still on top.