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

Avoid using computeIfAbsent for the common case when getting bean metadata

Description

The common case when getting the metadata of a bean is that the metadata is in the map.

So we should do a simple lookup first and return early if it's present in the map.

That's one more lookup in the case where we don't have the metadata but it should happen only once per bean.

Note that a new lambda instance is created for every call so it reduces memory allocation.

Environment

None

Status

Assignee

Guillaume Smet

Reporter

Guillaume Smet

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Priority

Major