I don't understand what does it mean to register a class for kryo serialization. To give some background the link here says that
Kryo does not support all Serializable types and requires you to register the classes you’ll use in the program in advance for best performance.
Again, I don't understand what is the meaning of registering a class? Isn't the serialization code static in the sense that you apply the same logic to serialize all kinds of objects. How could mentioning in advanced the classes that will be serialized be helpful later then?
Thanks!