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

Improve performance. Add benchmark and serialization projects. #35

Merged
merged 1 commit into from
Nov 30, 2018
Merged

Improve performance. Add benchmark and serialization projects. #35

merged 1 commit into from
Nov 30, 2018

Conversation

aalmada
Copy link
Contributor

@aalmada aalmada commented Nov 29, 2018

Main features:

  • Changes Equals() and GetHashCode() to only compare Value.
  • Adds TryFromName() and TryFromValue() methods. These allow searching without exceptions thrown, improving considerably performance.
  • Adds a ignoreCase parameter to FromName() and TryFromName(). The default value is false for better performance.
  • Adds inline documentation.
  • Adds benchmarking project for performance evaluation of SmartEnum common operations. Also measures performance when using enum, Enums.NET and Constant.
  • Adds support for SmartEnum (de)serialization using Json.NET, Utf8Json, MessagePack-CSharp and protobuf-net.

@ardalis ardalis merged commit 1c9bf3e into ardalis:master Nov 30, 2018
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.

None yet

2 participants