Re: [PATCH] use skip_prefix() to avoid more magic numbers
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 9, 2014, 20:12 UTC
- Message-ID
- <xmqqsiix57fr.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <5436EAB5.2070809@web.de>
René Scharfe <l.s.r@web.de> writes:
> I didn't think much about the performance implications. skip_prefix() > doesn't call strlen(3), though.
Ah, OK.
> The code handles millions of ref strings per second before and after > the change, and with the change it's faster. I hope the results are > reproducible and make it easier to say goodbye to pfxlen. :)
;-)