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

fix list sorting to replace without indexof #489

Merged
merged 1 commit into from
Jun 30, 2021

Conversation

hutterm
Copy link
Contributor

@hutterm hutterm commented Jun 28, 2021

#392 introduced a change that slows down sorting.
The list.Replace(...) internally uses IndexOf to find the index of the item.
This is unnecessary as the index is known from the change

@RolandPheasant
Copy link
Collaborator

This is kind of obvious - good spot and thanks.

@RolandPheasant RolandPheasant self-requested a review June 30, 2021 16:31
@RolandPheasant RolandPheasant merged commit 0dcbea2 into reactivemarbles:main Jun 30, 2021
@hutterm hutterm deleted the fix-list-replace branch June 30, 2021 17:48
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants