Skip to content

More efficient read_xarray implementation with from_map_batched#63

Merged
alxmrs merged 10 commits into
mainfrom
record-batches
Jul 13, 2025
Merged

More efficient read_xarray implementation with from_map_batched#63
alxmrs merged 10 commits into
mainfrom
record-batches

Conversation

@alxmrs

@alxmrs alxmrs commented Jul 13, 2025

Copy link
Copy Markdown
Collaborator

I created a lightweight iterator over batches called from_map_batched, which uses a pyarrow RecordBatchReader to stream in batches one by one. This is not the ideal of a streaming dataset, which after lots of research, requires a TabeProvider via a FFI. But, it is a memory-efficient improvement over the present implementation.

This PR provides other small refactorings and reformattings.

@alxmrs
alxmrs merged commit c0ffceb into main Jul 13, 2025
7 checks passed
@alxmrs
alxmrs deleted the record-batches branch July 13, 2025 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant