Skip to content

ArrowArrayStreamReader imports FFI_ArrowSchema on each iteration #5103

@pitrou

Description

@pitrou

The next method of ArrowArrayStreamReader always re-exports the already imported Schema, to re-import it immediately afterwards:

let schema = FFI_ArrowSchema::try_from(schema_ref.as_ref()).ok()?;
let data = from_ffi(array, &schema).ok()?;

It would be less wasteful to pass the existing Schema to the internal FFI routines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions