From: Andreas Politz Date: Sat, 7 Oct 2017 15:18:37 +0000 (+0200) Subject: Optimize struct layout for space X-Git-Tag: emacs-29.0.90~1616^2~406^2~61 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=55ac6f21053935fb8369a33a827f5df2f99e872a;p=emacs.git Optimize struct layout for space * src/itree.h (struct interval_node): Move color member near the end. --- 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. */