[ https://issues.apache.org/jira/browse/AVRO-3987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17844487#comment-17844487 ]
Ashley Taylor commented on AVRO-3987: ------------------------------------- PR https://github.com/apache/avro/pull/2900 > Concurrency improvement for ReflectData FieldAccessors > ------------------------------------------------------ > > Key: AVRO-3987 > URL: https://issues.apache.org/jira/browse/AVRO-3987 > Project: Apache Avro > Issue Type: Improvement > Components: java > Reporter: Ashley Taylor > Assignee: Ashley Taylor > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Currently, within ReflectData subclass ClassAccessorData, there is a > WeakHashMap called bySchema. > This contains the FieldAccessor[] needed to build the Object. > To prevent concurrency issues currently, the getAccessorsFor method is > synchronized. This method is called per record read/write. Using an immutable > replace approach with each changing and switching to a volatile object > results in significant performance improvement -- This message was sent by Atlassian Jira (v8.20.10#820010)