Class org.hibernate.engine.spi.EntityEntry consumes lots of memory

Description

The class

consumes a high amount of memory. I'm not referring to long-term memory, but since there is a high frequency of allocations of these, the cost of allocating all these objects is high.
(In a general purpose test which isn't working just on ORM we can accumulate ~200GB of memory of these in 25 minutes)

Very similar to HHH-8682, bot probably much harder to improve.

Environment

None

Status

Assignee

Sanne Grinovero

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Major
Configure