cloud-fan commented on issue #25470: [SPARK-28751][Core] Improve java serializer deserialization performance URL: https://github.com/apache/spark/pull/25470#issuecomment-522466113 from the doc ``` /** * :: DeveloperApi :: * An instance of a serializer, for use by one thread at a time. * * It is legal to create multiple serialization / deserialization streams from the same * SerializerInstance as long as those streams are all used within the same thread. */ @DeveloperApi @NotThreadSafe abstract class SerializerInstance ``` Since it's not thread-safe, I think reusing the InputStream is better than caching the classes. We should fix all the places that use `SerializerInstance` in multiple threads.
---------------------------------------------------------------- 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]
