author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 20 Mar 2007 03:05:10 +0000 (04:05 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 20 Mar 2007 05:17:25 +0000 (22:17 -0700) | ||
commit | 824f782c3f8f2db8e884b0c555d21ed4cfd6fff2 | |
tree | ae980f46cbbc5607496d1fe8897b0f87e3d947f9 | tree | snapshot |
parent | 57584d9eddc3482c5db0308203b9df50dc62109c | commit | diff |
xdiff/xutils.c(xdl_hash_record): factor out whitespace handling
Since in at least one use case, xdl_hash_record() takes over 15% of the
CPU time, it makes sense to even micro-optimize it. For many cases, no
whitespace special handling is needed, and in these cases we should not
even bother to check for whitespace in _every_ iteration of the loop.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Since in at least one use case, xdl_hash_record() takes over 15% of the
CPU time, it makes sense to even micro-optimize it. For many cases, no
whitespace special handling is needed, and in these cases we should not
even bother to check for whitespace in _every_ iteration of the loop.
Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
xdiff/xutils.c | diff | blob | history |