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

Improve S3 Zarr performance #1300

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Jan 31, 2024

Description of Changes

There is no way to control the order of the IOSP classes loaded by the ServiceLoader. This can result in very slow performance for S3 Zarr files, since many IOSPs will want to read the data to check if it is a valid file of their type. The ZarrIosp check is super fast since it only needs to check whether its Raf is a directory type.

I propose to add a new method to the IOServiceProvider interface that will sort the IOSPs into two (or later more) groups so that the fast/common IOSPs can be checked first and the rest checked later.

@tdrwenski tdrwenski marked this pull request as ready for review January 31, 2024 18:54
@tdrwenski tdrwenski marked this pull request as draft January 31, 2024 19:13
@tdrwenski tdrwenski force-pushed the improve-zarr-perf branch 3 times, most recently from e2fb3aa to ee091c3 Compare February 2, 2024 17:48
@tdrwenski tdrwenski marked this pull request as ready for review February 2, 2024 18:32
Copy link

@haileyajohnson haileyajohnson left a comment

Choose a reason for hiding this comment

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

I like it :)

@haileyajohnson haileyajohnson merged commit 18a14a4 into Unidata:maint-5.x Feb 5, 2024
10 checks passed
@tdrwenski tdrwenski deleted the improve-zarr-perf branch February 5, 2024 16:58
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.

None yet

2 participants