Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix magic enum slow compilation times #4113

Merged

Conversation

pwojcikdev
Copy link
Contributor

Introducing magic_enum slowed down our compilation times. The reason for that is that it's a library relying heavily on templates and it was used from inline methods in a header file. That resulted in a lot of unnecessary recompilations of the same code. This PR moves that implementation to a .cpp file, so it only needs to be compiled once. In addition it also solves the annoying macro redefinition warnings.

@pwojcikdev pwojcikdev merged commit 49b8cce into nanocurrency:develop Feb 8, 2023
@pwojcikdev pwojcikdev deleted the fix-magic-enum-slowdown branch February 8, 2023 22:02
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants