mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 14:30:16 +00:00
HHH-6004 improved HashMap performance in StructuredCacheEntry
This commit is contained in:
parent
bdf0186a7f
commit
e012809fb2
@ -69,7 +69,7 @@ public Object destructure(Object structured, SessionFactoryImplementor factory)
|
||||
public Object structure(Object item) {
|
||||
final CacheEntry entry = (CacheEntry) item;
|
||||
final String[] names = persister.getPropertyNames();
|
||||
final Map map = new HashMap(names.length+2);
|
||||
final Map map = new HashMap( names.length + 3, 1f );
|
||||
map.put( "_subclass", entry.getSubclass() );
|
||||
map.put( "_version", entry.getVersion() );
|
||||
map.put( "_lazyPropertiesUnfetched", entry.areLazyPropertiesUnfetched() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user