Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3987

Concurrency improvement for ReflectData FieldAccessors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • java

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              ashley-taylor Ashley Taylor
              ashley-taylor Ashley Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h