From: Graham Leggett Date: Sun, 17 Oct 2010 16:58:11 +0000 (+0000) Subject: Optimise the configuration structures for mod_disk_cache. X-Git-Tag: 2.3.9~287 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc1fb839b55b0736848e6d28456689a4730727db;p=thirdparty%2Fapache%2Fhttpd.git Optimise the configuration structures for mod_disk_cache. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1023528 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/mod_disk_cache.h b/modules/cache/mod_disk_cache.h index 9f090e1ad31..d22f816e873 100644 --- a/modules/cache/mod_disk_cache.h +++ b/modules/cache/mod_disk_cache.h @@ -56,8 +56,8 @@ typedef struct { apr_ino_t inode; apr_dev_t device; /* Does this cached request have a body? */ - int has_body; - int header_only; + int has_body:1; + int header_only:1; /* The parsed cache control header */ cache_control_t control; } disk_cache_info_t; @@ -91,7 +91,7 @@ typedef struct disk_cache_object { apr_table_t *headers_out; /* Output headers to save */ apr_off_t offset; /* Max size to set aside */ apr_time_t timeout; /* Max time to set aside */ - int done; /* Is the attempt to cache complete? */ + int done:1; /* Is the attempt to cache complete? */ } disk_cache_object_t; @@ -119,10 +119,10 @@ typedef struct { apr_off_t maxfs; /* maximum file size for cached files */ apr_off_t readsize; /* maximum data to attempt to cache in one go */ apr_time_t readtime; /* maximum time taken to cache in one go */ - int minfs_set; - int maxfs_set; - int readsize_set; - int readtime_set; + int minfs_set:1; + int maxfs_set:1; + int readsize_set:1; + int readtime_set:1; } disk_cache_dir_conf; #endif /*MOD_DISK_CACHE_H*/