Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-4752

ObjectPool should not do extra dynamic memory allocation

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Impala 2.8.0
    • Fix Version/s: Impala 2.9.0
    • Component/s: Backend
    • Labels:
      None

      Description

      The current ObjectPool implementation is inefficient because it allocates a wrapper object for every object stored in the pool. This could potentially double the number of dynamic memory allocations for small objects.

      Instead we should rework the class to avoid this. E.g. storing a function pointer instead of the wrapper class.

        Attachments

          Activity

            People

            • Assignee:
              tarmstrong Tim Armstrong
              Reporter:
              tarmstrong Tim Armstrong
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: