Thread (1 message) 1 message, 1 author, 2016-06-15

Re: XDL_FAST_HASH breaks git on OS X 10.7.3

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:42

David Aguilar [off-list ref] writes:
quoted
+       if (sizeof(long) == 8) {
Isn't the whole point of this code to be fast?

This should be a compile-time check... conditionals hurt perf.
Depends on how good your compiler is, no?  The above if () selects based
on a constant expression, so on 64-bit archs with a good compiler, there
won't be a jump instruction nor a single opcode for the else clause.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help