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

Optimize eio-based filesystem store abstract functions. #61

Merged
merged 7 commits into from
Aug 29, 2024
Merged

Conversation

zoj613
Copy link
Owner

@zoj613 zoj613 commented Aug 29, 2024

Try to reuse allocated memory as much as possible.

@zoj613 zoj613 added storage related to storage performance relating to performance labels Aug 29, 2024
Copy link

codecov bot commented Aug 29, 2024

Codecov Report

Attention: Patch coverage is 98.64865% with 1 line in your changes missing coverage. Please review.

Project coverage is 97.80%. Comparing base (01e6935) to head (840d5e8).
Report is 7 commits behind head on main.

Files with missing lines Patch % Lines
zarr-eio/src/storage.ml 96.96% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #61      +/-   ##
==========================================
- Coverage   97.83%   97.80%   -0.03%     
==========================================
  Files          17       17              
  Lines        1293     1278      -15     
==========================================
- Hits         1265     1250      -15     
  Misses         28       28              

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

Try to reuse allocated memory as much as possible.
Use as little buffer size as possible for reads/writes.
Minimize the number of Deferred.return calls.
`with_open path f` finalizes any changes made to the zip store and writes
them to the store's path after the call to f exits.
Turn simple pattern matching involding option types into
one-liner using Option.fold.
@zoj613 zoj613 merged commit 47fa69b into main Aug 29, 2024
3 of 4 checks passed
@zoj613 zoj613 deleted the eio-opt branch August 29, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance relating to performance storage related to storage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant