chaokunyang opened a new issue, #2026:
URL: https://github.com/apache/fury/issues/2026

   ### Feature Request
   
   `Map<String, String>` is very common in java, we can provide a fast 
serialization path for it to provide faster performance.
   
   ### Is your feature request related to a problem? Please describe
   
   _No response_
   
   ### Describe the solution you'd like
   
   Add a `StringMapSerialization` util class in 
`org.apache.fury.serializer.collection` package:
   ```java
   class StringMapSerialization {
     /**
      * Write string chunk until there isn't any entry left.
      */
     public static void writeStringChunks(
       MemoryBuffer buffer,
       Entry<String, String> entry,
       Iterator<Entry<String, String>> iterator) {
   
     }
     /**
      * Write string chunk until there isn't any entry left or chunk size 
reached max value..
      */
     public static Entry<String, String> writeStringChunk(
       MemoryBuffer buffer,
       Entry<String, String> entry,
       Iterator<Entry<String, String>> iterator) {
   
     }
   
     /**
      * Write string chunk until next entry is not string type.
      */
     public static Entry writeChunk(
       MemoryBuffer buffer,
       Entry<String, String> entry,
       Iterator<Entry> iterator) {
   
     }
   
     /**
      * Read all string kv chunks and put it into map until all chunks are read.
      */
     public static void readChunks(
       MemoryBuffer buffer, Map<String, String> map, long size, int 
chunkHeader) {
   
     }
   
     public static int readChunk(
       MemoryBuffer buffer, Map<String, String> map, long size, int 
chunkHeader) {
   
     }
   }
   
   ```
   
   
   Add fast path in `AbstractMapSerializer` to forward implementation into 
`StringMapSerialization`
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   #2025 


-- 
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]

Reply via email to