diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-02-25 11:17:53 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-02-27 08:37:56 +0100 |
commit | 62a2534e4c31109b618a633db0970553c70d8061 (patch) | |
tree | 306c55291c9dbc4736835f1e1e32947f5bdf5a33 /lib/ftp.c | |
parent | 50482b8c0a2cf5315e66d182998c8fc4901ffb2d (diff) |
urldata: convert bools to bitfields and move to end
This allows the compiler to pack and align the structs better in
memory. For a rather feature-complete build on x86_64 Linux, gcc 8.1.2
makes the Curl_easy struct 4.9% smaller. From 6312 bytes to 6000.
Removed an unused struct field.
No functionality changes.
Closes #3610
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -4395,7 +4395,6 @@ static CURLcode ftp_setup_connection(struct connectdata *conn) return CURLE_OUT_OF_MEMORY; ftp->path = &data->state.up.path[1]; /* don't include the initial slash */ - data->state.slash_removed = TRUE; /* we've skipped the slash */ /* FTP URLs support an extension like ";type=<typecode>" that * we'll try to get now! */ |