Staging
v0.5.1
v0.5.1
Revision 0556a11a0df6b4119e01aa77dfb795561e62eb34 authored by Linus Torvalds on 30 June 2006, 18:20:33 UTC, committed by Junio C Hamano on 02 July 2006, 01:28:15 UTC
This IMNSHO cleans up the object hashing. The hash expansion is separated out into a function of its own, the hash array (and size) names are made more obvious, and the code is generally made to look a bit more like the object-ref hashing. It also gets rid of "find_object()" returning an index (or negative position if no object is found), since that is made redundant by the simplified object rehashing. The basic operation is now "lookup_object()" which just returns the object itself. There's an almost unmeasurable speed increase, but more importantly, I think the end result is more readable. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 6631c73
File | Mode | Size |
---|---|---|
test | ||
README | -rw-r--r-- | 195 bytes |
gitweb.cgi | -rwxr-xr-x | 83.9 KB |
gitweb.css | -rw-r--r-- | 4.2 KB |
Computing file changes ...