Skip to content

Can ObjectCopier be reused #339

Answered by hg-ms
Bios-Marcel asked this question in Q&A
Nov 29, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Making deep copies of java objects is a bit more complex. The Object Copier internally serializes and deserialized the passed object graph to create such a deep copy.
Initializing the Object Copier is an expensive task therefore you should try to reuse existing instances if possible.
In case the log messages are annoying you may disable logging. The logger in your example output is namend org.eclipse.serializer.persistence.types.PersistenceCustomTypeHandlerRegistry.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Bios-Marcel
Comment options

Answer selected by Bios-Marcel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants