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

Compile-time name trimming and binary size #106

Open
Christian-Sander opened this issue Mar 7, 2022 · 0 comments
Open

Compile-time name trimming and binary size #106

Christian-Sander opened this issue Mar 7, 2022 · 0 comments

Comments

@Christian-Sander
Copy link

Christian-Sander commented Mar 7, 2022

I've added better-enums to an embedded project with limited binary size.
After converting a single existing enum to BETTER_ENUM the binary size increased by ~5 kB which is not acceptable for such a project.
I was able to trim this to less than 1 kB by enabling the compile-time name trimming feature so it seems that the runtime code is pulling in many dependencies or generating much code.

In such a case using the compile-time name trimming feature is definitely preferred, so I suggest to add a small note about that to the documentation for other users.

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

No branches or pull requests

1 participant