diff options
author | Erik Olsson <erik.eo.olsson@gmail.com> | 2021-01-16 22:17:51 +0100 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2021-01-20 22:52:34 -0500 |
commit | 0a5827571f97feded67d6abc837c332224917f75 (patch) | |
tree | ce65e4f8137b34233aa9a6287b44fb5a7f9b13dc /lib/multi.c | |
parent | 46f4736356a436dfb0fd26f41e63f6dd76514f53 (diff) | |
download | curl-0a5827571f97feded67d6abc837c332224917f75.tar.gz |
lib: save a bit of space with some structure packing
- Reorder some internal struct members so that less padding is used.
This is an attempt at saving a bit of space by packing some structs
(using pahole to find the holes) where it might make sense to do
so without losing readability.
I.e., I tried to avoid separating fields that seem grouped
together (like the cwd... fields in struct ftp_conn for instance).
Also abstained from touching fields behind conditional macros as
that quickly can get complicated.
Closes https://github.com/curl/curl/pull/6483
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c index d8de7e8e3..34c916e33 100644 --- a/lib/multi.c +++ b/lib/multi.c @@ -200,8 +200,8 @@ struct Curl_sh_entry { struct Curl_hash transfers; /* hash of transfers using this socket */ unsigned int action; /* what combined action READ/WRITE this socket waits for */ - void *socketp; /* settable by users with curl_multi_assign() */ unsigned int users; /* number of transfers using this */ + void *socketp; /* settable by users with curl_multi_assign() */ unsigned int readers; /* this many transfers want to read */ unsigned int writers; /* this many transfers want to write */ }; |