Skip to content

Performance: Add more extension methods for Array and List#9487

Merged
henon merged 4 commits intoMudBlazor:devfrom
xC0dex:performance/collection-extensions
Jul 24, 2024
Merged

Performance: Add more extension methods for Array and List#9487
henon merged 4 commits intoMudBlazor:devfrom
xC0dex:performance/collection-extensions

Conversation

@xC0dex
Copy link
Member

@xC0dex xC0dex commented Jul 23, 2024

This is an addition to #9461

I added some more extension methods and updated a private field and a private property to use List instead of IList to make use of the new extension methods.

How Has This Been Tested?

Existing unit tests.

Checklist

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.

@xC0dex xC0dex added the performance Time/memory/CPU/allocation performance characteristics label Jul 23, 2024
@codecov
Copy link

codecov bot commented Jul 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.55%. Comparing base (28bc599) to head (f6d88b6).
Report is 379 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #9487      +/-   ##
==========================================
+ Coverage   89.82%   90.55%   +0.72%     
==========================================
  Files         412      406       -6     
  Lines       11878    12718     +840     
  Branches     2364     2462      +98     
==========================================
+ Hits        10670    11517     +847     
+ Misses        681      639      -42     
- Partials      527      562      +35     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xC0dex xC0dex requested review from ScarletKuro and henon July 23, 2024 17:31
@henon henon changed the title performance: Add more extension methods for Array and List Performance: Add more extension methods for Array and List Jul 23, 2024
@ScarletKuro
Copy link
Member

@henon I feel like it would be still nice to have some dedicated unit tests for this even if those are simple one liners, what do you think?

@xC0dex
Copy link
Member Author

xC0dex commented Jul 23, 2024

@henon I feel like it would be still nice to have some dedicated unit tests for this even if those are simple one liners, what do you think?

No problem, I could add tests for each method if you want 👍

@henon henon merged commit 21d9862 into MudBlazor:dev Jul 24, 2024
@xC0dex xC0dex deleted the performance/collection-extensions branch July 25, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Time/memory/CPU/allocation performance characteristics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants