Skip to content

Sort making searchImage result with basic images front#2103

Merged
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main
Aug 20, 2025
Merged

Sort making searchImage result with basic images front#2103
cb-github-robot merged 1 commit intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

image

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings August 20, 2025 02:12
@seokho-son seokho-son requested a review from yunkon-kim as a code owner August 20, 2025 02:12
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 implements sorting functionality to prioritize basic images in search results by moving them to the front of the returned image list.

  • Adds an efficient O(n) partitioning algorithm to move basic images to the beginning of search results
  • Uses an in-place swapping approach to maintain memory efficiency
  • Preserves the relative order of basic images while ensuring they appear before non-basic images

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

}
}

// Move basic images to the front using partition approach (O(n) instead of O(n log n))
Copy link

Copilot AI Aug 20, 2025

Choose a reason for hiding this comment

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

[nitpick] The comment mentions O(n log n) comparison but doesn't specify what operation this refers to. Consider clarifying that this is comparing against a sorting-based approach, e.g., '// Move basic images to the front using partition approach (O(n) instead of O(n log n) sort-based approach)'

Suggested change
// Move basic images to the front using partition approach (O(n) instead of O(n log n))
// Move basic images to the front using partition approach (O(n) instead of O(n log n) sort-based approach)

Copilot uses AI. Check for mistakes.
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Aug 20, 2025
@cb-github-robot cb-github-robot merged commit 4f1a298 into cloud-barista:main Aug 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants