]> git.ipfire.org Git - thirdparty/git.git/commit
commit.h: rearrange 'index' to shrink struct commit
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 11 May 2018 17:20:54 +0000 (19:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 13 May 2018 02:01:48 +0000 (11:01 +0900)
commit25f859fdf49c37780685d07ebda81b7716fb5879
tree254c15f5dc4fe7fd512cee81372eab5a9410ad59
parentccdcbd54c4475c2238b310f7113ab3075b5abc9c
commit.h: rearrange 'index' to shrink struct commit

On linux 64-bit architecture, pahole finds that there's a 4 bytes
padding after 'index'. Moving it to the end reduces this struct's size
from 72 to 64 bytes (because of another 4 bytes padding after
graph_pos). On linux 32-bit, the struct size remains 52 bytes like
before.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
commit.h