chaokunyang opened a new issue, #1679: URL: https://github.com/apache/incubator-fury/issues/1679
## Is your feature request related to a problem? Please describe. Deep copy is common in programing to avoid modify existing data, which may introduce side effect and subtle bugs. Currently fury doesn't support copy natively, users need to serialized data into binary, then deserialize it into object. This is costly, it introduce extra copy, and for immutable objects such as string, time objects, boxed objects, there is no need to copy. ## Describe the solution you'd like We should support copy natively in fury: - Design a copy interface - Make`Serializer` implement the copy interface, throw UnsupportedException by default. - For non-jit serializer, override the copy interface to implement copy - For immutable object such as `String`, `java.time`, just return itself - For mutable object, create new object and set all attributes - For pojo/bean/record object, implement the copy in a separate class, and forward the copy to that class to reuse the copy implementation in `ObjectSerializer/CompatibleObjectSerializer` ## Additional context <!-- Add any other context or screenshots about the feature request here. --> -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
