urlyy opened a new pull request, #2898:
URL: https://github.com/apache/fory/pull/2898

   ## What does this PR do?
   1. Added a `type_resolver` parameter to `fory_static_type_id()` and 
`fory_reserved_space()` so that `type_resolver.is_compress_int()` can be used 
to decide whether to use `read/write_varint32()` or `read/write_i32()`.
   2. Added a `compress_int()` method to `Fory` to allow users to configure 
whether integers should be compressed; default is `true`.
   3. Updated the logic in `impl Serializer for i32`.
   
   ## Related issues
   #2885 
   
   ## Does this PR introduce any user-facing change?
   Users can configure whether to compress integers by calling 
`fory.compress_int(true/false)`.
   


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