[PR #1375] chore: performance and readability improvement #2708

Open
opened 2026-01-29 18:20:06 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/1375

State: closed
Merged: No


There is no point in iterating the list twice.
I also reverted the ifs and used pattern matching.

You can close this PR if you don't find it useful, but I had to debug this code and had to make it more readable for me, so I decided to post it now that I have these changes.

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/1375 **State:** closed **Merged:** No --- There is no point in iterating the list twice. I also reverted the ifs and used pattern matching. You can close this PR if you don't find it useful, but I had to debug this code and had to make it more readable for me, so I decided to post it now that I have these changes.
claunia added the pull-request label 2026-01-29 18:20:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2708