Skip to content

urldata: convert bools to bitfields and move to end#3610

Closed
bagder wants to merge 2 commits intomasterfrom
bagder/urldata-bitfields
Closed

urldata: convert bools to bitfields and move to end#3610
bagder wants to merge 2 commits intomasterfrom
bagder/urldata-bitfields

Conversation

@bagder
Copy link
Member

@bagder bagder commented Feb 25, 2019

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.

@bagder bagder force-pushed the bagder/urldata-bitfields branch 2 times, most recently from f8894c3 to 5e7d9e2 Compare February 25, 2019 12:39
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.
@bagder bagder force-pushed the bagder/urldata-bitfields branch from 5e7d9e2 to 7e239f7 Compare February 25, 2019 15:00
@bagder bagder closed this in 62a2534 Feb 27, 2019
@bagder bagder deleted the bagder/urldata-bitfields branch February 27, 2019 07:38
@lock lock bot locked as resolved and limited conversation to collaborators Jun 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant