Skip to content

Comments

v10.3.0#95

Merged
feO2x merged 8 commits intomainfrom
dev
Oct 9, 2023
Merged

v10.3.0#95
feO2x merged 8 commits intomainfrom
dev

Conversation

@feO2x
Copy link
Owner

@feO2x feO2x commented Oct 9, 2023

  • 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
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
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 <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
@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