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

perf: Remove async directory auto-detection #17779

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

nameexhaustion
Copy link
Collaborator

@nameexhaustion nameexhaustion commented Jul 22, 2024

This functionality requires we send 1 HEAD request per path in a serial manner - which can be extremely slow if the user provides a list of cloud file paths. This PR makes it so that an explicit trailing slash must be given if you want to scan from a cloud directory, which also matches the behavior of AWS CLI and improves performance.

@github-actions github-actions bot added performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars labels Jul 22, 2024
@nameexhaustion nameexhaustion changed the title perf: Don't send head request without explicit trailing slash perf: Remove async directory auto-detection Jul 22, 2024
@nameexhaustion nameexhaustion marked this pull request as ready for review July 22, 2024 07:57
Copy link

codecov bot commented Jul 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.46%. Comparing base (40f06ff) to head (759579c).

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #17779      +/-   ##
==========================================
+ Coverage   80.42%   80.46%   +0.04%     
==========================================
  Files        1502     1502              
  Lines      197075   197074       -1     
  Branches     2794     2794              
==========================================
+ Hits       158498   158584      +86     
+ Misses      38063    37976      -87     
  Partials      514      514              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ritchie46 ritchie46 merged commit 2eb1ac2 into pola-rs:main Jul 22, 2024
19 checks passed
atigbadr pushed a commit to atigbadr/polars that referenced this pull request Jul 23, 2024
@nameexhaustion nameexhaustion deleted the expand branch July 28, 2024 10:59
@c-peters c-peters added the accepted Ready for implementation label Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation performance Performance issues or improvements python Related to Python Polars rust Related to Rust Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants