chaokunyang opened a new issue, #3569: URL: https://github.com/apache/fory/issues/3569
### Feature Request _No response_ ### Is your feature request related to a problem? Please describe Currently fory rust have a buffer bound check for each struct field, but for numeric fields, the max possible binary length can be computed in advance at macro processing time. So we can compute max possible length in advance and grow buffer once, then write to buffer directly, and commit writer index after all numeric/bool fields has been written ### Describe the solution you'd like Take java/c++ struct fields serialization as reference: - java: BaseObjectCodecBuilder.java - C++: struct_serializer.h ### 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]
