Github user srowen commented on a diff in the pull request: https://github.com/apache/spark/pull/22894#discussion_r229812240 --- Diff: core/src/main/scala/org/apache/spark/scheduler/MapStatus.scala --- @@ -189,13 +190,12 @@ private[spark] class HighlyCompressedMapStatus private ( emptyBlocks.readExternal(in) avgSize = in.readLong() val count = in.readInt() - val hugeBlockSizesArray = mutable.ArrayBuffer[Tuple2[Int, Byte]]() + hugeBlockSizes = new util.HashMap[Int, Byte](count).asScala --- End diff -- Does calling `HashMap.sizeHint(...)` here actually help? I'd stick to the scala collection for now
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org