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

Remove usage of dyn, instead use an enum for runtime dispatch #33

Merged
merged 2 commits into from
Sep 11, 2023

Conversation

MabezDev
Copy link
Member

@MabezDev MabezDev commented Sep 5, 2023

Closes #22

Didn't really make much of an impact on binary size, saved around 60bytes, but maybe using an enum will give the compiler a more clear view and enable better optimizations.

@MabezDev MabezDev marked this pull request as draft September 5, 2023 23:43
Remove much of the cfg blocks from varios places. Where possible, new
concise cfgs have been introduced.

Adds a transport to replace dyn.
@MabezDev MabezDev marked this pull request as ready for review September 6, 2023 11:28
@MabezDev MabezDev requested a review from jessebraham September 6, 2023 11:29
Copy link
Member

@jessebraham jessebraham left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@jessebraham jessebraham merged commit a035f30 into main Sep 11, 2023
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.

Remove/Limit usage of dyn
2 participants