We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f21853 + c0ec9b3 commit caad3d7Copy full SHA for caad3d7
core/src/main/scala/org/apache/spark/sort/UnsafeSort.scala
@@ -42,7 +42,7 @@ object UnsafeSort {
42
43
val outputFile = s"$baseFolder/part$part.dat"
44
45
- val os = new BufferedOutputStream(new FileOutputStream(outputFile), 4 * 1024 * 1024)
+ val os = new BufferedOutputStream(new FileOutputStream(outputFile), bufSize)
46
val buf = new Array[Byte](100)
47
var count = 0
48
val arrOffset = BYTE_ARRAY_BASE_OFFSET
0 commit comments