Skip to content

Commit

Permalink
HHH-13723 Hint sizing of ArrayList in ResultSetProcessingContextImpl
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanne committed Nov 11, 2019
1 parent 8744178 commit 66515a2
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -281,8 +281,9 @@ void finishUpRow() {


// managing the running list of registrations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
final int sizeHint = currentRowHydratedEntityRegistrationList.size();
if ( hydratedEntityRegistrationList == null ) {
hydratedEntityRegistrationList = new ArrayList<>();
hydratedEntityRegistrationList = new ArrayList<>( sizeHint );
}
hydratedEntityRegistrationList.addAll( currentRowHydratedEntityRegistrationList );

Expand Down

0 comments on commit 66515a2

Please sign in to comment.