mattjubb commented on code in PR #2702:
URL: https://github.com/apache/fory/pull/2702#discussion_r2407818255
##########
java/fory-core/src/main/java/org/apache/fory/resolver/ClassInfoSerializer.java:
##########
@@ -0,0 +1,21 @@
+package org.apache.fory.resolver;
+
+import org.apache.fory.memory.MemoryBuffer;
+
+/**
+ * ClassInfoSerializer provides a mechanism to customize the recording of the
ClassInfo
+ * default implementation uses a short value, however when the class
registration needs to be customized
+ * this can be set of the ClassResolver to handle storing the ClassInfo is a
customized manner
+ */
+public interface ClassInfoSerializer {
Review Comment:
that would require registering all classes upfront which means loading the
.class, for large amounts of classes that is a very large upfront cost, lets
say we have 10,000 classes and we only want to deserialize a single object with
a single class - that would mean loading all 10,000 .class to just serialize a
single object. if we could provide a fully qualified name (fqn) which could
then be loaded when required via Class.forName then registering by name would
probably meet our needs
--
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]