diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-04-17 07:59:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-04-17 08:02:28 +0000 |
commit | b60e0eebc4e108f63372f9a0ffe318589599728f (patch) | |
tree | 24dfb6d4b32dc5d7adb87138eaafb2670762613b | |
parent | 354eae3bd113e66c863b384765d88680406ed633 (diff) | |
download | cmogstored-b60e0eebc4e108f63372f9a0ffe318589599728f.tar.gz |
This results in a small size reduction due to better alignment: $ ~/linux/scripts/bloat-o-meter cmogstored.before cmogstored.after add/remove: 0/0 grow/shrink: 2/2 up/down: 20/-56 (-36) function old new delta mog_http_get_open 1460 1476 +16 mog_chunk_init 65 69 +4 http_forward_in_progress 63 55 -8 mog_http_parse 27171 27123 -48
-rw-r--r-- | cmogstored.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmogstored.h b/cmogstored.h index 334f2f7..3a7812d 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -171,7 +171,8 @@ enum mog_chunk_state { struct mog_http { int cs; struct { - enum mog_http_method http_method:4; + /* only needs 4 bits, but we use 8 for alignment */ + enum mog_http_method http_method:8; unsigned persistent:1; unsigned chunked:1; unsigned has_md5:1; |