HQLQueryPlan allocates a new ArrayList every time even if it is not required

Description

HQLQueryPlan creates a new ArrayList to return every time, however if there is only one translator then it should be possible to just directly return the results list.

Note that this actually results in two additional array allocations, as the ArrayList.addAll() invocation calls .toArray() internally.

Activity

Show:

Stuart DouglasNovember 19, 2015 at 12:49 AM

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created November 19, 2015 at 12:07 AM
Updated December 2, 2015 at 5:51 PM
Resolved November 26, 2015 at 3:37 PM

Flag notifications