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

Drop unneeded caching, improve README #3

Merged
merged 3 commits into from
Aug 30, 2023
Merged

Drop unneeded caching, improve README #3

merged 3 commits into from
Aug 30, 2023

Conversation

orsinium
Copy link
Member

  1. Drop the mapping of members to values. Thanks to @LukeShu (don't use reflection #1), now the conversion of enum member to value is fast. It will make Enum.Contains a bit slower but we should have proper benchmarks before we try to optimize it. I suspect that linear lookup might be even faster on small enums.
  2. Add more examples in the readme.
  3. Check readme with grammarly.

@orsinium orsinium merged commit b7ec380 into master Aug 30, 2023
6 checks passed
@orsinium orsinium deleted the drop-caching branch August 30, 2023 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant