unchuckable opened a new pull request #1206:
URL: https://github.com/apache/avro/pull/1206


   This PR addresses AVRO-3048 
(https://issues.apache.org/jira/projects/AVRO/issues/AVRO-3048), improving 
`newBuilder()` performance for newly generated `SpecificRecord`s by reusing the 
already existing `SpecificData` instance (`MODEL$`) in the specific records 
themselves.
   
   No new unit tests should be required, for the current changes are already 
covered by existing unit tests. Reference files for code generation have been 
updated to reflect the minor changes to the record and errror templates.
   
   Further measures might be required to alleviate the performance regression 
of AVRO-3048 for existing code that cannot be re-generated easily.
   
   If this PR is found feasible, I would suggest cherry-picking it for 1.9 and 
1.10 branches, too, to allow for existing applications to benefit from the 
changes.
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to