Re: [PATCH 05/15] refs.c: update rename_ref to use a transaction
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 28, 2014, 21:12 UTC
- Message-ID
- <xmqqh9ynkiem.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <CAL=YDWm05PyO07HbiOTiweh+3AEvXnbptbzoreLw-b9YUrm-Hg@mail.gmail.com>
Ronnie Sahlberg <sahlberg@google.com> writes:
Show 5 quoted lines
> I timed a git branch -m for a branch with ~2400 log entries and it > takes neglible time : > real 0m0.008s > user 0m0.000s > sys 0m0.007s
I really hate this line of reasoning. Small things tend to add up.
More importantly, when you know that the end result you want to see is that the old and new log files are bit-for-bit identical, and if not there is some bug in either parsing or formatting, why parse the old and reformat into the new? What would happen when there were malformed entries in the old that makes your parsing fail?