HHH-6004 improved HashMap performance in StructuredCacheEntry

This commit is contained in:
Brett Meyer 2013-10-31 08:41:23 -04:00
parent bdf0186a7f
commit e012809fb2
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ public class StructuredCacheEntry implements CacheEntryStructure {
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() );