[Privoxy-commits] [privoxy] 05/17: Rearrange members of struct http_request to reduce padding on amd64

User Git git at git.privoxy.org
Thu Jan 21 13:03:32 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit 274add5184cdc8c99a65030098a9c461691377a8
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Jan 21 11:28:24 2021 +0100

    Rearrange members of struct http_request to reduce padding on amd64
    
    While at it, change member 'ssl' to short to save memory.
---
 project.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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 */
 };
 
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list