HHH-13723 Hint sizing of ArrayList in ResultSetProcessingContextImpl
This commit is contained in:
parent
87441781c6
commit
66515a2e4e
|
@ -281,8 +281,9 @@ public class ResultSetProcessingContextImpl implements ResultSetProcessingContex
|
|||
|
||||
|
||||
// managing the running list of registrations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
final int sizeHint = currentRowHydratedEntityRegistrationList.size();
|
||||
if ( hydratedEntityRegistrationList == null ) {
|
||||
hydratedEntityRegistrationList = new ArrayList<>();
|
||||
hydratedEntityRegistrationList = new ArrayList<>( sizeHint );
|
||||
}
|
||||
hydratedEntityRegistrationList.addAll( currentRowHydratedEntityRegistrationList );
|
||||
|
||||
|
|
Loading…
Reference in New Issue