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

[oscilloscope] Use enums instead of strcmp #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kubark42
Copy link

@kubark42 kubark42 commented Aug 22, 2023

*** UNTESTED: DO NOT MERGE ***


Using enums is faster, smaller, and safer than string comparisons. This also puts the code validators as close to the parsers as possible.


I'm floating a trial balloon to see if this kind of modification would be appreciated. If so, I can do some testing to prep this for merge.

Faster and safer than string comparisons
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