Uploaded image for project: 'Hibernate ORM'
  1. HHH-10301

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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.4
    • Fix Version/s: 5.0.5, 5.1.0
    • Component/s: hibernate-core
    • Labels:
      None
    • Last commented by a user?:
      true
    • Sprint:

      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.

        Attachments

          Activity

            People

            • Assignee:
              stuart.w.douglas Stuart Douglas
              Reporter:
              stuart.w.douglas Stuart Douglas
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: