urlyy opened a new issue, #2915:
URL: https://github.com/apache/fory/issues/2915

   ### Feature Request
   
   for this:
   ```rust
   impl Default for Fory {
       fn default() -> Self {
           Fory {
               compatible: false,
               xlang: false,
               share_meta: false,
               type_resolver: TypeResolver::default(),
               compress_string: false,
               max_dyn_depth: 5,
               check_struct_version: false,
               write_context_pool: OnceLock::new(),
               read_context_pool: OnceLock::new(),
           }
       }
   }
   ```
   Although Fory allows each Fory object to have its flags set individually, I 
believe most users will use the same optimal configuration when working with 
multiple Fory objects. 
   And Using a DefaultConfig variable to manage default values is also a 
reasonable approach. It only slightly affects the performance when creating 
Fory objects and does not impact the performance of subsequent serialization.
   
   ### Is your feature request related to a problem? Please describe
   
   _No response_
   
   ### Describe the solution you'd like
   
   _No response_
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   _No response_


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