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

   ### Feature Request
   
   _No response_
   
   ### Is your feature request related to a problem? Please describe
   
   The current implementation:
   - Passes multiple parameters to every serialization method
   - Mixes read and write state in a single context
   - Has redundant indirections and flag checks
   - Lacks fast paths for common primitive types
   
   ### Describe the solution you'd like
   
   Implement performance optimizations:
   - Separate `ReadContext` and `WriteContext` to eliminate unnecessary state
   - Add fast paths for primitives (bool, int*, float*, string)
   - Inline common operations for compiler optimization
   - Add fast paths for common collection types ([]int, []string, etc.)
   - Optimize struct field serialization with direct memory access
   
   
   Benefits
   - Reduced method call overhead
   - Better CPU cache utilization
   - Faster serialization for common types
   - More efficient memory access patterns
   
   
   ### Describe alternatives you've considered
   
   _No response_
   
   ### Additional context
   
   #2982 


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