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

Reduce tables to 8bit #2930

Merged
merged 2 commits into from
Dec 15, 2021
Merged

Conversation

nolange
Copy link
Contributor

@nolange nolange commented Dec 14, 2021

No description provided.

To make code more expressive, add U8 and S8 typedefs
This saves some 1.7Kb in rodata section (x86_64, zstd tool),
while assembler code stays the same except
the type of a few load/extend instructions.

Should not have negative performance implications.
Copy link
Contributor

@felixhandte felixhandte left a comment

Choose a reason for hiding this comment

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

Looks like this saves 4KB. Cool!

I looked at the disassembled diff on amd64 and confirmed that this just replaces mov instructions with movzbl, so it should otherwise be a total no-op.

@felixhandte felixhandte merged commit d5933a4 into facebook:dev Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants