GitHub user chaokunyang added a comment to the discussion: Java: maximum performance with minimum overhead
`ImmutableIntArray` is a final field, when using `SCHEMA_CONSISTENT` mode, we don't write type info. But in `ReplaceResolveSerializer`, we always write it, since it can return a different class. This can be optimized, we can create a new constructor for `ReplaceResolveSerializer` with an extra paramter `is_field`, then when writing data, we can actually skip write class name of object since we can use field type for deserialization. And you should update `org.apache.fory.serializer.AbstractObjectSerializer#buildFieldInfos` and `org.apache.fory.builder.BaseObjectCodecBuilder#getOrCreateSerializer` to pass this `is_field` paramter for `ReplaceResolveSerializer` @mchernyakov Would you like to submit a PR? GitHub link: https://github.com/apache/fory/discussions/2786#discussioncomment-14741873 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
