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

Improve MemPool::TryAllocate() efficiency for small strings

    Details

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

      Description

      There are some places in the code where we allocate many small strings from MemPool::TryAllocate(). The code is not particularly well optimised for this case. Specifically:

      • We always realign to the default alignment even when alignment isn't required.
      • The fast path through the code could be streamlined.

      I noticed this while working on IMPALA-5307 where I'm adding extra calls to allocate strings per-row.

        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: