Skip to content

Improved Equals performance#111

Open
rsstudios wants to merge 1 commit into
Cysharp:masterfrom
rsstudios:master
Open

Improved Equals performance#111
rsstudios wants to merge 1 commit into
Cysharp:masterfrom
rsstudios:master

Conversation

@rsstudios

Copy link
Copy Markdown

Improved Equals performance by replacing branching instructions with XORs on older .NET standards. Benchmark from my machine

  • Equals
Method Mean Error Ratio Gen0 Allocated Alloc Ratio
Guid_ 1.2188 ns NA 1.00 - - NA
Ulid_ 0.2299 ns NA 0.19 - - NA
NUlid_ 14.7996 ns NA 12.14 0.0061 80 B NA

I would appreciate somebody validating my method before approving.

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