author | Nicolas Pitre <nico@cam.org> | |
Mon, 16 Apr 2007 16:29:54 +0000 (12:29 -0400) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 17 Apr 2007 00:43:31 +0000 (17:43 -0700) | ||
commit | 9668cf59a83d1aa881036818abf29cc2ea9e291b | |
tree | 8a062f6809e57e1810a256735c0d317ad2b8fad2 | tree | snapshot |
parent | 898b14cedc353de95945fcc56e14f463c3066bf0 | commit | diff |
pack-objects: clean up list sorting
Get rid of sort_comparator() as it impose a run time double indirect
function call for little compile time type checking gain.
Also get rid of create_sorted_list() as it only has one user which would
as well be just fine doing its sorting locally. Eventually the list of
deltifiable objects might be shorter than the whole object list.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Get rid of sort_comparator() as it impose a run time double indirect
function call for little compile time type checking gain.
Also get rid of create_sorted_list() as it only has one user which would
as well be just fine doing its sorting locally. Eventually the list of
deltifiable objects might be shorter than the whole object list.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-objects.c | diff | blob | history |