Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 2 commits into from

Conversation

Projects
None yet
1 participant
@bagder
Copy link
Member

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 Feb 25, 2019

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.

@bagder bagder force-pushed the bagder/urldata-bitfields branch from 5e7d9e2 to 7e239f7 Feb 25, 2019

@bagder bagder closed this in 62a2534 Feb 27, 2019

@bagder bagder deleted the bagder/urldata-bitfields branch Feb 27, 2019

@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.
You can’t perform that action at this time.