Skip to content

FieldInfo#attributes should be exposed as variables instead of map #12193

@jeffgan96

Description

@jeffgan96

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions