Skip to content

Allow custom allocator to be injected in more places #690

@paleolimbot

Description

@paleolimbot

When developing https://github.com/paleolimbot/duckdb-nanoarrow it was apparent that we need the ability to inject an ArrowBufferAllocator into the ArrowIpcArrayStreamReader for clients that need tight control over memory usage.

There is also at least one place in the device API where we assume a buffer allocator:

In those two examples specifically a lack of custom allocator isn't blocking any real-world case (in DuckDB we can also do a better job coordinating IO if we skip the ArrowIpcArrayStreamReader entirely and go through the lower-level ArrowIpcDecoder; in cudf they have their own code for copying arrays and don't use the device API); however, the option should still be there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions