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

   ## Why?
   loop unroll can speed up code cache and give better branch predict.
   
   ## What does this PR do?
   1. Add loop unroll logic
   2. Add a feature for switch, default is enable, you can comment `default = 
["fields-loop-unroll"]` in `fora-derive/Cargo.toml` to disable this. Disabling 
this feature helps analyze the expanded code during the Debug phase, because as 
the number of struct fields increases, loop unrolling causes the amount of code 
generated in `fory_read_data()`/`fory_write_data` to grow exponentially.
   
   ## Related issues
   Fixes #2721 


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