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

Optional support for synchronous HTTP filesystem #748

Merged
merged 6 commits into from
Jun 4, 2024

Conversation

moradology
Copy link
Contributor

This PR adds a flag that enables the experimental support for a synchronous alternative to the HTTP/S filesystems provided by FSSpec. Fairly extensive profiling with xarray reveals that this is quite likely slower than the default case but enabling it allows us to reduce the async/concurrency surface area of the code which may avoid or at least help debug potential deadlocking issues.

@norlandrhagen
Copy link
Contributor

norlandrhagen commented May 29, 2024

@moradology I just tried this locally with the pyspark runner and it worked great! Thanks for opening this PR.

One minor nit. Would it be possible to add some ImportError if httpsfs_sync is not installed and the fsspec_sync_patch is set to True? I got this message: httpfs_sync could not be imported. Falling back to async http implementation..

Copy link
Contributor

@ranchodeluxe ranchodeluxe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need the juice!

@moradology moradology merged commit 4430172 into main Jun 4, 2024
6 checks passed
@moradology moradology deleted the feature/optional-sync-http branch June 4, 2024 16:49
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.

3 participants