chaokunyang commented on issue #2026: URL: https://github.com/apache/fury/issues/2026#issuecomment-2646375815
The AbstractMapSerializer handles serialization for different types of maps, where key and value types can vary from one map to another. This variability prevents the JVM's Just-In-Time (JIT) compiler from effectively inlining the read and write methods for key and value serializers. However, maps with string keys and values are so prevalent that they merit a special code path to facilitate JIT inlining. An alternative approach involves adding a fast path before invoking the read and write methods for key and value serializers within AbstractMapSerializer. This optimization could also improve performance. Maybe we could follow this way -- 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]
