diff options
author | René Scharfe <l.s.r@web.de> | 2022-07-16 19:01:18 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-17 15:20:39 -0700 |
commit | 9b9f5f6217a5178e348dc2e18bc6af7158b97c36 (patch) | |
tree | a5593fdd08bf48a20a146adf69c3f62f26fec994 /mergesort.h | |
parent | 6fc9fec07bcaa6561aff5b485f1ac581f97a2428 (diff) | |
download | git-9b9f5f6217a5178e348dc2e18bc6af7158b97c36.tar.gz |
packfile: use DEFINE_LIST_SORT
Build a typed sort function for packed_git lists 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 slightly
increased object text size.
Before:
__TEXT __DATA __OBJC others dec hex
20218 320 0 110936 131474 20192 packfile.o
With this patch:
__TEXT __DATA __OBJC others dec hex
20430 320 0 112619 133369 208f9 packfile.o
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mergesort.h')
0 files changed, 0 insertions, 0 deletions