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

Minimize get_partial and set_partial calls. #52

Merged
merged 2 commits into from
Aug 22, 2024
Merged

Minimize get_partial and set_partial calls. #52

merged 2 commits into from
Aug 22, 2024

Conversation

zoj613
Copy link
Owner

@zoj613 zoj613 commented Aug 22, 2024

calling these for every requested inner chunk of a shard is expensive can can lead to a Unix.EMFILE error. This commit attempts to minimize the number of calls by making sure these are called once on all requested inner chunks of a shard. This should lead to a significant decrease in the number of open files open for read/write at the same time when using a Zarr_lwt FilesystemStore.

@zoj613 zoj613 added storage related to storage performance relating to performance refactoring labels Aug 22, 2024
@zoj613 zoj613 changed the title Minimize get_partial & set_partial calls. Minimize get_partial and set_partial calls. Aug 22, 2024
@zoj613 zoj613 force-pushed the batchread branch 2 times, most recently from 0717c52 to 712e7ae Compare August 22, 2024 14:10
calling these for every requested inner chunk of a shard is
expensive can can lead to a `Unix.EMFILE` error. This commit
attempts to minimize the number of calls by making sure these are
called once on all requested inner chunks of a shard. This should
lead to a significant decrease in the number of open files open
for read/write at the same time when using a Zarr_lwt `FilesystemStore`.
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.52%. Comparing base (97e7226) to head (10b81e5).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #52      +/-   ##
==========================================
+ Coverage   97.50%   97.52%   +0.02%     
==========================================
  Files          15       15              
  Lines        1160     1173      +13     
==========================================
+ Hits         1131     1144      +13     
  Misses         29       29              

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

@zoj613 zoj613 merged commit 6c0904c into main Aug 22, 2024
4 checks passed
@zoj613 zoj613 deleted the batchread branch August 22, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance relating to performance refactoring storage related to storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant