ConeyLiu commented on a change in pull request #25470: [SPARK-28751][Core] 
Improve java serializer deserialization performance
URL: https://github.com/apache/spark/pull/25470#discussion_r315055307
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/serializer/JavaSerializer.scala
 ##########
 @@ -92,9 +106,14 @@ private object JavaDeserializationStream {
 }
 
 private[spark] class JavaSerializerInstance(
-    counterReset: Int, extraDebugInfo: Boolean, defaultClassLoader: 
ClassLoader)
+    counterReset: Int,
+    extraDebugInfo: Boolean,
+    defaultClassLoader: ClassLoader,
+    useCache: Boolean)
   extends SerializerInstance {
 
+  lazy val resolvedClassesCache = new ConcurrentHashMap[(String, ClassLoader), 
Class[_]]()
 
 Review comment:
   updated to Option. In the RPC module, the `JavaSerializerInstance` lives 
along with `RpcEnv`, but the size is limited by the RPC types. 

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to