Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rust): Allow specification of chunk_size on LazyCsvReader.read_options #19819

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

engylemure
Copy link
Contributor

@engylemure engylemure commented Nov 15, 2024

The LazyCsvReader appears to consume significant memory for certain inputs. This is primarily due to the large default chunk_size (262144) in the CsvReadOptions. While the low_memory option can help in some cases, it may not be sufficient for all use cases, introducing a way to control the amount of data that will be read and stored in memory can mitigate potential out-of-memory (OOM) issues at the cost of performance.

Related issues:

@engylemure engylemure changed the title allow specification of chunk_size on LazyCsvReader.read_options feat(rust): allow specification of chunk_size on LazyCsvReader.read_options Nov 15, 2024
@engylemure engylemure changed the title feat(rust): allow specification of chunk_size on LazyCsvReader.read_options feat(rust): allow specification of chunk_size on LazyCsvReader.read_options Nov 15, 2024
@engylemure engylemure changed the title feat(rust): allow specification of chunk_size on LazyCsvReader.read_options feat(rust): Allow specification of chunk_size on LazyCsvReader.read_options Nov 15, 2024
@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature rust Related to Rust Polars and removed title needs formatting labels Nov 15, 2024
@engylemure engylemure changed the title feat(rust): Allow specification of chunk_size on LazyCsvReader.read_options feat(rust): Allow specification of chunk_size on LazyCsvReader.read_options Nov 15, 2024
@ritchie46 ritchie46 merged commit 97b92a5 into pola-rs:main Nov 16, 2024
24 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature rust Related to Rust Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants