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 Scan ICollection<> performance #388

Merged
merged 2 commits into from
May 7, 2023
Merged

Conversation

viceroypenguin
Copy link
Owner

This PR updates the ICollection<> implementation of Scan to use a for-loop during CopyTo() to improve performance.

Fixes #384

@viceroypenguin viceroypenguin added this to the 5.1.0 milestone May 7, 2023
@viceroypenguin viceroypenguin enabled auto-merge (squash) May 7, 2023 02:13
@codecov
Copy link

codecov bot commented May 7, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.05 🎉

Comparison is base (d6a3261) 87.49% compared to head (44d95b1) 87.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #388      +/-   ##
==========================================
+ Coverage   87.49%   87.55%   +0.05%     
==========================================
  Files         239      239              
  Lines        7239     7256      +17     
  Branches     1681     1685       +4     
==========================================
+ Hits         6334     6353      +19     
+ Misses        464      462       -2     
  Partials      441      441              
Impacted Files Coverage Δ
Source/SuperLinq/Scan.cs 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@viceroypenguin viceroypenguin merged commit dccffcd into master May 7, 2023
@viceroypenguin viceroypenguin deleted the scan-icollection branch May 7, 2023 02:49
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.

ICollection<T> version of Scan
1 participant