kiszk commented on a change in pull request #25470: [SPARK-28751][Core][WIP] Improve java serializer deserialization performance URL: https://github.com/apache/spark/pull/25470#discussion_r317881031
########## File path: core/src/main/scala/org/apache/spark/rpc/netty/NettyRpcEnv.scala ########## @@ -261,20 +265,20 @@ private[netty] class NettyRpcEnv( } private[netty] def serialize(content: Any): ByteBuffer = { - javaSerializerInstance.serialize(content) + serializer.get().serialize(content) } /** * Returns [[SerializationStream]] that forwards the serialized bytes to `out`. */ private[netty] def serializeStream(out: OutputStream): SerializationStream = { - javaSerializerInstance.serializeStream(out) + serializer.get.serializeStream(out) Review comment: nit: do we want to use the same style for `use`? Probably, `get()` ---------------------------------------------------------------- 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 With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org