Skip to content

enhance: do not re-sort candidates anymore#13

Merged
cloorc merged 1 commit into
masterfrom
feature/develop
Aug 26, 2025
Merged

enhance: do not re-sort candidates anymore#13
cloorc merged 1 commit into
masterfrom
feature/develop

Conversation

@cloorc
Copy link
Copy Markdown
Collaborator

@cloorc cloorc commented Aug 26, 2025

No description provided.

Signed-off-by: Cloorc <wittcnezh@foxmail.com>
Copilot AI review requested due to automatic review settings August 26, 2025 07:22
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR optimizes the FindBestMatch function by removing redundant sorting of candidates, based on the assumption that matches are already sorted by weight.

  • Removes explicit sorting of matches array by TotalWeight
  • Adds comment indicating matches are already sorted
  • Simplifies logic by directly using the first element as best match

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread matcher.go
@massiveio massiveio enabled auto-merge August 26, 2025 07:23
@massiveio massiveio added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Aug 26, 2025
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@massiveio massiveio added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Aug 26, 2025
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@cloorc cloorc added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Aug 26, 2025
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@cloorc cloorc added this pull request to the merge queue Aug 26, 2025
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to Branch Protection failures Aug 26, 2025
You're not authorized to push to this branch. Visit "About protected branches" for more information.
@cloorc cloorc merged commit 67d7a11 into master Aug 26, 2025
2 checks passed
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.

3 participants