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

   ### Feature Request
   
   _No response_
   
   ### Is your feature request related to a problem? Please describe
   
   The current Fory instance is not thread-safe, requiring users to:
   - Manually manage Fory instances per goroutine
   - Implement their own pooling for performance
   - Risk data races if sharing instances
   
   
   ### Describe the solution you'd like
   
   Create a new `fory/threadsafe` package that:
   - Wraps Fory instances using `sync.Pool` for zero-contention concurrency
   - Provides the same API surface as the main package
   - Automatically manages instance lifecycle (acquire/release)
   - Includes both generic and non-generic APIs
   
   Benefits
   - Safe concurrent use out of the box
   - Efficient pooling with automatic cleanup
   - No performance overhead for single-threaded use (still use main package)
   - Easy migration path for concurrent applications
   
   ### 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