From: Fabian Keil Date: Thu, 21 Jan 2021 10:28:24 +0000 (+0100) Subject: Rearrange members of struct http_request to reduce padding on amd64 X-Git-Tag: v_3_0_30~53 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=274add5184cdc8c99a65030098a9c461691377a8 Rearrange members of struct http_request to reduce padding on amd64 While at it, change member 'ssl' to short to save memory. --- diff --git a/project.h b/project.h index 3f6f588d..15805e87 100644 --- a/project.h +++ b/project.h @@ -335,11 +335,10 @@ struct http_request char *version; /**< Protocol version */ int status; /**< HTTP Status */ - char *host; /**< Host part of URL */ int port; /**< Port of URL or 80 (default) */ + char *host; /**< Host part of URL */ char *path; /**< Path of URL */ char *hostport; /**< host[:port] */ - int ssl; /**< Flag if protocol is https */ char *host_ip_addr_str; /**< String with dotted decimal representation of host's IP. NULL before connect_to() */ @@ -354,6 +353,7 @@ struct http_request unsigned char hash_of_host_hex[(HASH_OF_HOST_BUF_SIZE * 2) + 1]; /**< chars for hash in hex string and one for '\0' */ unsigned char hash_of_host[HASH_OF_HOST_BUF_SIZE+1]; /**< chars for bytes of hash and one for '\0' */ #endif + short int ssl; /**< Flag if protocol is https */ };