Skip to content

use DistanceHeap replace MaxHeap#680

Merged
LHT129 merged 1 commit into
antgroup:mainfrom
LHT129:heap
May 12, 2025
Merged

use DistanceHeap replace MaxHeap#680
LHT129 merged 1 commit into
antgroup:mainfrom
LHT129:heap

Conversation

@LHT129

@LHT129 LHT129 commented May 6, 2025

Copy link
Copy Markdown
Collaborator

No description provided.

@LHT129 LHT129 self-assigned this May 6, 2025
@LHT129
LHT129 requested a review from inabao as a code owner May 6, 2025 06:37
@LHT129 LHT129 added the kind/improvement Optimizations, UX polish, or minor improvements 性能优化、体验打磨或细节改良 label May 6, 2025
@LHT129 LHT129 added the version/0.15 1. Add Attribute Filter 2. Quantization and transformation 1. 新增 Attribute Filter 2. 量化与变换 label May 6, 2025
@codecov

codecov Bot commented May 6, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 87.42515% with 21 lines in your changes missing coverage. Please review.

@@            Coverage Diff             @@
##             main     #680      +/-   ##
==========================================
+ Coverage   91.29%   91.34%   +0.04%     
==========================================
  Files         189      189              
  Lines       11422    11421       -1     
==========================================
+ Hits        10428    10432       +4     
+ Misses        994      989       -5     
Flag Coverage Δ
cpp 91.34% <87.42%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
common 93.02% <ø> (-0.02%) ⬇️
datacell 92.41% <ø> (ø)
index 89.27% <79.34%> (+0.08%) ⬆️
simd 100.00% <ø> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e787f...d572c86. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@LHT129
LHT129 force-pushed the heap branch 2 times, most recently from 9f80cb8 to 735aca6 Compare May 10, 2025 02:54
IteratorFilterContext* iter_ctx) const {
MaxHeap top_candidates(allocator_);
MaxHeap candidate_set(allocator_);
auto top_candidates = std::make_shared<StandardHeap<true, false>>(allocator_, -1);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can we initialize a size here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

origin MaxHeap not fixed size, so we only replace with non-fixed-size StandardHeap

@inabao inabao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@wxyucs wxyucs left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
@LHT129
LHT129 merged commit 0dbbb3c into antgroup:main May 12, 2025
@LHT129
LHT129 deleted the heap branch May 12, 2025 07:56
LHT129 added a commit to LHT129/vsag that referenced this pull request Apr 16, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
LHT129 added a commit that referenced this pull request May 11, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Sia-Sheerland pushed a commit to Sia-Sheerland/vsag that referenced this pull request Jun 26, 2026
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>
Signed-off-by: Sia Sheerland <x1075956441x@163.com>

Signed-off-by: Sia Sheerland <x1075956441x@163.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/improvement Optimizations, UX polish, or minor improvements 性能优化、体验打磨或细节改良 size/L version/0.15 1. Add Attribute Filter 2. Quantization and transformation 1. 新增 Attribute Filter 2. 量化与变换

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants