You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "John Morris (JIRA)" <ji...@apache.org> on 2013/12/21 00:26:09 UTC

[jira] [Created] (DRILL-336) Extend off heap memory manager to support growing vectors

John Morris created DRILL-336:
---------------------------------

             Summary: Extend off heap memory manager to support growing vectors
                 Key: DRILL-336
                 URL: https://issues.apache.org/jira/browse/DRILL-336
             Project: Apache Drill
          Issue Type: Improvement
    Affects Versions: 1.0.0-milestone-2
            Reporter: John Morris


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.




--
This message was sent by Atlassian JIRA
(v6.1.4#6159)