Hacker News new | past | comments | ask | show | jobs | submit login

Better title: A one-line change decreased our "git clone" times by 99%.

It's a bit misleading to use "build time" to describe this improvement, as it makes people think about build systems, compilers, header files, or cache. On the other hand, the alternative title is descriptive and helpful to all developers, not only just builders - people who simply need to clone a branch from a large repository can benefit from this tip as well.




Right, from the article:

"This simple one line change reduced our clone times by 99% and significantly reduced our build times as a result."

So the title is just completely wrong.


There's also this part of the article:

"We found that setting the refspec option during git fetch reduced our build times by 99%."

So, the article contains contradictions.


They set out to reduce build times, not to reduce git checkout times. It turns out that 99% of the entire build was spent downloading code.


Where does the article say "99% of the entire build was spent downloading code"?


The title. If they reduced the build time by that much, then at least that much of the build time must have been spent downloading code.

If the title is a lie (which it probably is), then nevermind that number, but it's clear where it came from.


The text of the article clearly states that clone time was reduced by 99%.

The only way build time could have been reduced by 99% is if every part of the build other than cloning is negligible. It is far more plausible to assume that the title is simply wrong.


It quotes a jenkins job going from 40 minutes to 30 seconds.


They say "Cloning our largest repo, Pinboard, went from 40 minutes to 30 seconds"

Presumably the build does more than just clone


This isn't true either, as the article says that builds went from 40 minutes to 30 minutes. The time spent cloning was presumably about 10 minutes and came down very far, presumably by 99%.


> the article says that builds went from 40 minutes to 30 minutes.

Where in the article does it say that? The article says this:

> This simple one line change reduced our clone times by 99% and significantly reduced our build times as a result. Cloning our largest repo, Pinboard went from 40 minutes to 30 seconds.

Both of those sentences say the clone time was reduced by 99%. There are percentage numbers given for how much the build time was reduced, nor any numbers about the total build time.


It says from 40 minutes to 30 seconds, not minutes.


I stand quite corrected. Sorry, all!




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: