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

list: refactor/optimize list_insert_sorted #748

Merged
merged 2 commits into from
Apr 3, 2023

Conversation

sreimers
Copy link
Member

@sreimers sreimers commented Mar 28, 2023

list_insert_sorted() can handle two cases, forward and reverse sort (on already sorted list).
So I think we can reduce complexity.

@sreimers sreimers changed the title Refactor list insert sorted list: refactor/optimize list_insert_sorted Mar 28, 2023
@sreimers sreimers force-pushed the refactor_list_insert_sorted branch from fa088b8 to 278c8e4 Compare March 28, 2023 19:23
`list_insert_sorted()` can handle two cases, forward and reverse sort.
So I think we can reduce complexity.
@sreimers sreimers force-pushed the refactor_list_insert_sorted branch from 26f73b5 to 8750d79 Compare March 29, 2023 06:43
@sreimers sreimers marked this pull request as ready for review March 29, 2023 06:46
@sreimers sreimers merged commit 32ef969 into main Apr 3, 2023
@sreimers sreimers deleted the refactor_list_insert_sorted branch April 3, 2023 18:43
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