yugan95 commented on code in PR #8160:
URL: https://github.com/apache/paimon/pull/8160#discussion_r3393954343
##########
paimon-common/src/main/java/org/apache/paimon/data/serializer/BinaryRowSerializer.java:
##########
@@ -80,6 +80,19 @@ public BinaryRow deserialize(DataInputView source) throws
IOException {
return row;
}
+ /**
+ * Maximum retained reuse buffer size in bytes. Buffers exceeding this cap
are eligible for
+ * shrinking when the shrink ratio condition is also met.
+ */
+ private static final int MAX_RETAINED_REUSE_BUFFER_SIZE = 4 * 1024 * 1024;
// 4MB
Review Comment:
Done. Reused `RowHelper.MAX_RETAINED_REUSE_BUFFER_SIZE` and
`RowHelper.SHRINK_RATIO` from #8159, removed the duplicate definitions in
`BinaryRowSerializer`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]