author | Junio C Hamano <gitster@pobox.com> | |
Thu, 3 Jan 2008 09:23:12 +0000 (01:23 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 3 Jan 2008 09:23:12 +0000 (01:23 -0800) | ||
commit | 698a68be7b0df6dd8d0880e0e2167cad8688a6ad | |
tree | 8cb9dc608f12b52288524e4f20c59faa1d131157 | tree | snapshot |
parent | 257f3020f69f3222cdefc1d84b148fb35b2c4f5b | commit | diff |
Uninline prefixcmp()
Now the routine is an open-coded loop that avoids an extra
strlen() in the previous implementation, it got a bit too big to
be inlined. Uninlining it makes code footprint smaller but the
result still retains the avoidance of strlen() cost.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Now the routine is an open-coded loop that avoids an extra
strlen() in the previous implementation, it got a bit too big to
be inlined. Uninlining it makes code footprint smaller but the
result still retains the avoidance of strlen() cost.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h | diff | blob | history | |
strbuf.c | diff | blob | history |