Skip to content

Version 1.3#6

Merged
dusrdev merged 7 commits intostablefrom
pre-release
Feb 21, 2025
Merged

Version 1.3#6
dusrdev merged 7 commits intostablefrom
pre-release

Conversation

@dusrdev
Copy link
Owner

@dusrdev dusrdev commented Feb 21, 2025

Changelog

  • Added overloads of Upsert that accept a string key, while the ReadOnlySpan<char> overloads are amazing in specific cases where its use can prevent a string allocation for the lookup, in other places where the input was originally a string that was implicitly converted to a ReadOnlySpan<char> for the parameter, this would've caused a copy to be allocated for the key when the key did not exist. The same scenario will now use the string overload and use it for the key directly, avoiding the intermediate copy.
  • Added a ValueTask based GetOrAddAsync method, commonly used in caching scenarios.

@dusrdev dusrdev merged commit e5c8f92 into stable Feb 21, 2025
12 checks passed
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