urlyy commented on issue #2885: URL: https://github.com/apache/fory/issues/2885#issuecomment-3649140189
> The `ForyObject` macro has already skiped using `i32/i64` serializer tro handle read/write, it generate code to invoke `write_varint32/write_varint64` directly. You can just update marco codegen logic to generate buffer `read/writexxx` code directly based on macro attrs introduced in this issue Yes, but it's hard to change the behavior of `i32/i64::fory_write_type_info` at compile-time for each field. For example, `K::fory_write_type_info(context)` in `map.rs#write_map_data`. After obtaining the compression mode setting for this field, how can we make the types `K` and `V` use the corresponding read/write methods for that compression mode? -- 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]
