arrow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes McKinney (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARROW-360) C++: Add method to shrink PoolBuffer using realloc
Date Sun, 06 Nov 2016 19:27:58 GMT

    [ https://issues.apache.org/jira/browse/ARROW-360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15642270#comment-15642270
] 

Wes McKinney commented on ARROW-360:
------------------------------------

We could make {{PoolBuffer::Resize}} call realloc when shrinking the buffer, currently it
assumes that the buffer is only getting larger

> C++: Add method to shrink PoolBuffer using realloc
> --------------------------------------------------
>
>                 Key: ARROW-360
>                 URL: https://issues.apache.org/jira/browse/ARROW-360
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: C++
>            Reporter: Uwe L. Korn
>            Assignee: Uwe L. Korn
>
> In the case where we have optimistically allocated a large PoolBuffer, we could shrink
it later again using a call to {{realloc}}. This should free the exceeding memory but avoids
an actual {{memcpy}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message