Skip to content

Fix magic enum slow compilation times#4113

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:fix-magic-enum-slowdown
Feb 8, 2023
Merged

Fix magic enum slow compilation times#4113
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:fix-magic-enum-slowdown

Conversation

@pwojcikdev
Copy link
Copy Markdown
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
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.

4 participants