We're updating the issue view to help you get more done. 

Minimize allocation cost of iterating on metadata fields

Description

When iterating on PropertyMetadata and TypeMetadata to build Lucene Documents, we're implicitly creating keyset iterators as these are represented by using HashSet. The amount of memory being "burned" is quite high.

Also we should definitely avoid invoking the ReflectionHelper methods at runtime:

1 propertyAccessor.getName()

Allocates various intermediate Strings and even applies some pattern matching magic on it.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Fix versions

Priority

Major