Repository navigation
do not use transfer map generated by protobuf - #17656
Merged
mergify[bot] merged 10 commits intoJul 24, 2024
Merged
Conversation
w-zr
requested review from
XuPeng-SH,
triump2020 and
zhangxu19830126
as code owners
July 22, 2024 10:45
1 of 7 tasks
…atrixone into reduce-transfer-page-memory-usage
zhangxu19830126
approved these changes
Jul 23, 2024
w-zr
force-pushed
the
reduce-transfer-page-memory-usage
branch
from
July 24, 2024 04:02
866a2f1 to
2b51f1e
Compare
XuPeng-SH
approved these changes
Jul 24, 2024
LeftHandCold
approved these changes
Jul 24, 2024
This was referenced Jul 25, 2024
mergify Bot
pushed a commit
that referenced
this pull request
Aug 1, 2024
Reduce transfer page memory usage on 1.2 dev cherry pick #17656 Approved by: @LeftHandCold, @zhangxu19830126, @XuPeng-SH, @sukki37
iamlinjunhong
pushed a commit
to iamlinjunhong/matrixone
that referenced
this pull request
Jun 25, 2025
Reduce transfer page memory usage on 1.2 dev cherry pick matrixorigin#17656 Approved by: @LeftHandCold, @zhangxu19830126, @XuPeng-SH, @sukki37
fengttt
pushed a commit
to fengttt/matrixone
that referenced
this pull request
May 7, 2026
The Protobuf-generated api.TransDestPos structure consumes 48 bytes of memory, despite the fact that we only utilize 3 int32 fields within it. To address this inefficiency and reduce memory consumption, in this pull request, I've implemented a hand-crafted api.TransDestPos structure that requires only 12 bytes. In the previous codebase, during the merging process on the CN, large transfer maps would be marshaled into binary format using Protobuf and then written to an S3 file. In this pull request, I use batches with 5 columns to write down. Approved by: @zhangxu19830126, @XuPeng-SH, @LeftHandCold
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #16653
What this PR does / why we need it:
The Protobuf-generated api.TransDestPos structure consumes 48 bytes of memory, despite the fact that we only utilize 3 int32 fields within it. To address this inefficiency and reduce memory consumption, in this pull request, I've implemented a hand-crafted api.TransDestPos structure that requires only 12 bytes.
In the previous codebase, during the merging process on the CN, large transfer maps would be marshaled into binary format using Protobuf and then written to an S3 file. In this pull request, I use batches with 5 columns to write down.