From: Willy Tarreau Date: Sun, 21 Oct 2018 04:52:11 +0000 (+0200) Subject: MINOR: ebtree: save 8 bytes in struct eb32sc_node X-Git-Tag: v1.9-dev4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319f078d6f22c648a814612a4232c499223d89f0;p=thirdparty%2Fhaproxy.git MINOR: ebtree: save 8 bytes in struct eb32sc_node There is a 4-bytes hole in this structure after the eb_node and the last field is 4-bytes as well, resulting in a total of 64 bytes with 8 bytes holes. Just moving the key after the eb_node (like in eb32_node) fills the hole and reduces the structure's size by 8 bytes. --- diff --git a/ebtree/eb32sctree.h b/ebtree/eb32sctree.h index 9d0c997656..51a2664ede 100644 --- a/ebtree/eb32sctree.h +++ b/ebtree/eb32sctree.h @@ -41,9 +41,9 @@ typedef signed int s32; */ struct eb32sc_node { struct eb_node node; /* the tree node, must be at the beginning */ + u32 key; unsigned long node_s; /* visibility of this node's branches */ unsigned long leaf_s; /* visibility of this node's leaf */ - u32 key; }; /*