Description
Currently, FieldInfo attributes map only stores PerFieldDocValuesFormat and PerFieldPostingsFormat. It is much costlier to read/write from this map multiple times as compared to if we simply extract them out as variables in the class instead.
Context: We have a use case where there are frequent refreshes and merges and we have seen many times in hot-threads read/write to FieldInfo#attributes. Since there are no other additions to this map apart from these 2, it would be better to just store them individually instead of using a map.