marin-ma commented on code in PR #6869:
URL: https://github.com/apache/incubator-gluten/pull/6869#discussion_r1744695061
##########
gluten-core/src/main/scala/org/apache/spark/shuffle/GlutenShuffleUtils.scala:
##########
@@ -91,6 +91,20 @@ object GlutenShuffleUtils {
}
}
+ def getCompressionBufferSize(conf: SparkConf, codec: String): Int = {
+ if ("lz4" == codec) {
+ Math.max(
+ conf.get(IO_COMPRESSION_LZ4_BLOCKSIZE).toInt,
+ GlutenConfig.GLUTEN_SHUFFLE_COMPRESSION_BUFFER_MIN_SIZE)
Review Comment:
64 is not the default value, unless user set `IO_COMPRESSION_LZ4_BLOCKSIZE`
to a very small size.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]