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

Reorder msgpack_packer struct #373

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Reorder msgpack_packer struct #373

merged 1 commit into from
Nov 11, 2024

Conversation

byroot
Copy link
Member

@byroot byroot commented Nov 11, 2024

Reduce its size from 224 to 216B.

Reduce its size from 224 to 216B.
@byroot byroot merged commit b3bcc6b into master Nov 11, 2024
17 checks passed
@byroot byroot deleted the reoder-packer branch November 11, 2024 18:45
Comment on lines +39 to 44
bool compatibility_mode;
bool has_bigint_ext_type;
bool has_symbol_ext_type;

/* options */
bool comaptibility_mode;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, if you use a bitfield, you can even turn this from 16B down to 8B

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm never too sure how bitfields impact performance. Probably negligible, but I only made this change because it was an obvious small waste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants