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

ObjectPool should not do extra dynamic memory allocation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Impala 2.8.0
    • Impala 2.9.0
    • Backend
    • 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

            tarmstrong Tim Armstrong
            tarmstrong Tim Armstrong
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: