Skip to content

v10.3.0 - #95

Merged
feO2x merged 8 commits into
mainfrom
dev
Oct 9, 2023
Merged

feO2x merged 8 commits into
mainfrom
dev

Conversation

@feO2x

@feO2x feO2x commented Oct 9, 2023

Copy link
Copy Markdown
Owner
  • Added Range.For to create range instances for valid collection indexes
  • Added GetCount extension method for IEnumerable<T> - this is a more optimized version of LINQ's Count extension method that also optimizes paths for IReadOnlyCollection<T> and string

feO2x added 8 commits October 3, 2023 10:46
I optimized the new GetCount method so that it also supports IReadOnlyCollection<T> and ICollection<T> properly. It's now faster in .NET 7 than the LINQ Count method on Windows and Linux.

Signed-off-by: Kenny Pflug <[email protected]>
@feO2x feO2x self-assigned this Oct 9, 2023
@feO2x
feO2x merged commit a067d91 into main Oct 9, 2023
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