msamirkhan commented on a change in pull request #29354: URL: https://github.com/apache/spark/pull/29354#discussion_r465999766
########## File path: external/avro/src/main/scala/org/apache/spark/sql/avro/SparkAvroDatumReader.scala ########## @@ -88,17 +87,10 @@ class SparkAvroDatumReader[T]( @throws[IOException] override def read(old: Any, expected: Schema, in: ResolvingDecoder): Object = { if (expected eq this.getExpected) { - var i = 0 - while (i < reuseIndices.length) { - reuseIndices(i) = 0 - i += 1 - } Review comment: Reusing from a pool had not given any perf improvements so removed that. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org