Skip to content

Support io direct read cross blocks#60

Merged
LHT129 merged 1 commit into
mainfrom
cross_block_read
Oct 15, 2024
Merged

Support io direct read cross blocks#60
LHT129 merged 1 commit into
mainfrom
cross_block_read

Conversation

@LHT129

@LHT129 LHT129 commented Oct 11, 2024

Copy link
Copy Markdown
Collaborator

issue #40

@LHT129 LHT129 added the kind/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 label Oct 11, 2024
@LHT129 LHT129 self-assigned this Oct 11, 2024
Comment thread src/data_cell/flatten_datacell.h Outdated
GetCodesById(uint64_t id, bool& need_release) const override;

bool
GetCodesById(uint8_t* codes, uint64_t id) const override;

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.

Adjust the params sequence: Input before output

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.

done

Comment thread src/io/memory_block_io.h
Comment on lines 157 to 158
if (check_valid_offset(size + offset)) {
if (check_in_one_block(offset, size + offset)) {

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.

unify name style: checkValidOffset / checkInOneBlock (like memory_io.h:112)

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.

we use under line style for private function. the memory_io.h will be fixed by other pull request

@LHT129
LHT129 force-pushed the cross_block_read branch 3 times, most recently from aa9bf1d to 4890963 Compare October 14, 2024 06:30
Signed-off-by: LHT129 <tianlan.lht@antgroup.com>

@jiaweizone jiaweizone 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

const uint8_t*
FlattenDataCell<QuantTmpl, IOTmpl>::GetCodesById(uint64_t id) const {
return io_->Read(code_size_, id * code_size_);
FlattenDataCell<QuantTmpl, IOTmpl>::GetCodesById(uint64_t id, bool& need_release) const {

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.

add TODO to simplify memory management

@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

@LHT129
LHT129 merged commit 20ed4f0 into main Oct 15, 2024
@LHT129
LHT129 deleted the cross_block_read branch October 15, 2024 04:05
Roxanne0321 pushed a commit to Roxanne0321/vsag that referenced this pull request Mar 3, 2025
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/feature Brand-new functionality or capabilities 引入全新的功能、新特性或新能力 size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants