Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
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
- links to