]> Kevux Git Server - rit/commit
commit: use DEFINE_LIST_SORT
authorRené Scharfe <l.s.r@web.de>
Sat, 16 Jul 2022 16:59:05 +0000 (18:59 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Jul 2022 22:20:39 +0000 (15:20 -0700)
commitc0fb5774a6435a46931ec58ac27a5623efba9449
treebf25a509274725a5b41756f02321bb98402599b8
parent47c30f7daa0858953043cdd2f9dfec75aeb0759d
commit: use DEFINE_LIST_SORT

Use DEFINE_LIST_SORT to build a typed sort function for commit_list
entries instead of calling llist_mergesort().  This gets rid of the next
pointer accessor functions and their calling overhead at the cost of a
slightly increased object text size.

Before:
__TEXT __DATA __OBJC others dec hex
18795 92 0 104654 123541 1e295 commit.o

With this patch:
__TEXT __DATA __OBJC others dec hex
18963 92 0 106094 125149 1e8dd commit.o

Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.c