You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fury shows the following (correct) warning for one of my classes:
class xy.SimplePrincipalCollection customized jdk serialization, which is inefficient. Please replace it with a org.apache.fury.serializer.Serializer or implements java.io.Externalizable.
I have no control over this class and cannot write an efficient custom serializer because internals cannot be accessed without reflection. How can I force Fury to use the default JIT/Codegen serializer for this class?
The text was updated successfully, but these errors were encountered:
If you force Fury to use the default JIT/Codegen serializer, the writeObject/readObject method in SimplePrincipalCollection won't be invoked, which may be unexpected if users did some special action in those methods.
If you do want to enfore fury serialization, you can do it by:
If you force Fury to use the default JIT/Codegen serializer, the writeObject/readObject method in SimplePrincipalCollection won't be invoked, which may be unexpected if users did some special action in those methods.
That makes sense. In this case I reviewed the custom JDK serialization and it is perfectly fine to use JIT instead.
Unfortunately, your suggested solution does not work for me. The first argument to loadCodegenSerializer is a Fury instance, but I only have access to a ThreadSafeFury.
Ok thanks! I will use this for now, but it requires casting and the method itself is marked as internal. It would be great to have a prettier option to force Fury to ignore JDK serialization for a class.
Question
Hi,
Fury shows the following (correct) warning for one of my classes:
I have no control over this class and cannot write an efficient custom serializer because internals cannot be accessed without reflection. How can I force Fury to use the default JIT/Codegen serializer for this class?
The text was updated successfully, but these errors were encountered: