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

Refactor Command enum #99

Merged
merged 14 commits into from
Aug 17, 2023
Merged

Refactor Command enum #99

merged 14 commits into from
Aug 17, 2023

Conversation

jamwaffles
Copy link
Collaborator

Mainly to reduce binary size (which this PR does, a bit) but also to get rid of some of the method indirection in the codebase

@jamwaffles
Copy link
Collaborator Author

Good reduction in binary size in examples/stm32-embassy:

master branch

   text    data     bss     dec     hex filename
 106264     112   50544  156920   264f8 ethercrab-stm32-embassy

This PR

   text    data     bss     dec     hex filename
  96012     112   50560  146684   23cfc ethercrab-stm32-embassy

10K off RAM and ROM 👍

@jamwaffles jamwaffles merged commit 29281ce into master Aug 17, 2023
@jamwaffles jamwaffles deleted the command-refactor branch August 17, 2023 17:17
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.

1 participant