blame: use DEFINE_LIST_SORT
commit47c30f7daa0858953043cdd2f9dfec75aeb0759d
authorRené Scharfe <l.s.r@web.de>
Sat, 16 Jul 2022 16:58:20 +0000 (16 18:58 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Jul 2022 22:20:38 +0000 (17 15:20 -0700)
tree912395241d3e677037cc643381780f3b214d9950
parentb378c2ff1e5f87cc7751d39aef97364acdcdf537
blame: use DEFINE_LIST_SORT

Build a typed sort function for blame entries using DEFINE_LIST_SORT
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
24621 56 0 147515 172192 2a0a0 blame.o

With this patch:
__TEXT __DATA __OBJC others dec hex
25229 56 0 151702 176987 2b35b blame.o

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