BiteTheDDDDt commented on code in PR #13014:
URL: https://github.com/apache/doris/pull/13014#discussion_r982047866


##########
be/src/util/block_compression.cpp:
##########
@@ -73,6 +73,13 @@ class Lz4BlockCompression : public BlockCompressionCodec {
     }
 
     Status compress(const Slice& input, faststring* output) override {
+        if (input.size > INT_MAX) {

Review Comment:
   For the compression of a block, this judgment is very lightweight, I don't 
think it is necessary to use `unlikely`



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to