From 55ac6f21053935fb8369a33a827f5df2f99e872a Mon Sep 17 00:00:00 2001 From: Andreas Politz Date: Sat, 7 Oct 2017 17:18:37 +0200 Subject: [PATCH] Optimize struct layout for space * src/itree.h (struct interval_node): Move color member near the end. --- src/itree.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/itree.h b/src/itree.h index 80115aa467c..7a5c4ae02a8 100644 --- a/src/itree.h +++ b/src/itree.h @@ -36,7 +36,6 @@ along with GNU Emacs. If not, see . */ struct interval_node; struct interval_node { - enum { ITREE_RED, ITREE_BLACK } color; struct interval_node *parent; struct interval_node *left; struct interval_node *right; @@ -46,6 +45,7 @@ struct interval_node ptrdiff_t offset; /* The amount of shift to apply to this subtree. */ uintmax_t otick; /* offset modified tick */ Lisp_Object data; /* Exclusively used by the client. */ + enum { ITREE_RED, ITREE_BLACK } color; bool_bf visited : 1; /* For traversal via generator. */ bool_bf rear_advance : 1; /* Same as for marker and overlays. */ bool_bf front_advance : 1; /* Same as for marker and overlays. */ -- 2.39.2