Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-336

Extend off heap memory manager to support growing vectors

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.4.0
    • 0.4.0
    • None

    Description

      Add the following interfaces to the bufferl memory manager:
      ptr = alloc(size, min, max) - allocate a block with given size, but
      with a total capacity between min+max.
      trim(ptr) - free up extra capacity, so current size is the capacity

      Rationale: It isn't always possible to anticipate the size of a vector. When creating a new vector, one strategy is to over-allocate the vector and then trim the size once the vector is complete. These routines allow us to implement this strategy.

      Attachments

        Activity

          People

            Unassigned Unassigned
            coyotebush John Morris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: