From 01c06a06aeffd36c9127b347ec472937921c4ff4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 24 Nov 2013 14:21:58 +0000 Subject: [PATCH] Micro-optimization to reduce the size of struct http_response On my amd64 system the size goes down from 72 to 64 bytes. --- project.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project.h b/project.h index 01f166eb..3bf0548a 100644 --- a/project.h +++ b/project.h @@ -1,7 +1,7 @@ #ifndef PROJECT_H_INCLUDED #define PROJECT_H_INCLUDED /** Version string. */ -#define PROJECT_H_VERSION "$Id: project.h,v 1.195 2012/12/07 12:45:20 fabiankeil Exp $" +#define PROJECT_H_VERSION "$Id: project.h,v 1.196 2013/03/07 14:08:50 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/project.h,v $ @@ -335,7 +335,6 @@ enum crunch_reason */ struct http_response { - enum crunch_reason crunch_reason; /**< Why the response was generated in the first place. */ char *status; /**< HTTP status (string). */ struct list headers[1]; /**< List of header lines. */ char *head; /**< Formatted http response head. */ @@ -344,6 +343,7 @@ struct http_response size_t content_length; /**< Length of body, REQUIRED if binary body. */ int is_static; /**< Nonzero if the content will never change and should be cached by the browser (e.g. images). */ + enum crunch_reason crunch_reason; /**< Why the response was generated in the first place. */ }; /** -- 2.39.2