-
Notifications
You must be signed in to change notification settings - Fork 32
🎨 Maintenance: change default chunk size to compute checksums to 8MiB instead of 5KB #7753
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
🎨 Maintenance: change default chunk size to compute checksums to 8MiB instead of 5KB #7753
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7753 +/- ##
==========================================
- Coverage 86.78% 86.48% -0.31%
==========================================
Files 1841 1433 -408
Lines 71499 59874 -11625
Branches 1214 616 -598
==========================================
- Hits 62050 51780 -10270
+ Misses 9107 7894 -1213
+ Partials 342 200 -142
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
22b638e to
51ad5bd
Compare
bisgaard-itis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏻 thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR increases the default chunk size used for computing SHA256 checksums from 4KB to 8MiB to enhance performance when processing large files. It updates related test fixtures to use asynchronous factory functions and removes an unnecessary conversion in the checksum generation.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/simcore-sdk/tests/integration/test_node_ports_common_filemanager.py | Updated optional_sync_settings to use async factories for settings retrieval. |
| packages/simcore-sdk/tests/integration/conftest.py | Modified factory fixtures to return async factory functions and adjusted their invocations. |
| packages/simcore-sdk/src/simcore_sdk/node_ports_common/filemanager.py | Removed unnecessary SHA256Str conversion when generating file checksums. |
| packages/service-library/src/servicelib/file_utils.py | Increased default chunk_size from CHUNK_4KB to CHUNK_8MB and adjusted corresponding comments. |
51ad5bd to
6a93cfa
Compare
|
@mergify queue |
🟠 Waiting for conditions to match
|
6a93cfa to
6df8555
Compare
|
@mergify queue |
f96ea31 to
60704c6
Compare
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at da1e85f |
|



What do these changes do?
chunk_sizein thecreate_sha256_checksumfunction fromCHUNK_4KBtoCHUNK_8MBto improve performance when processing large files. (packages/service-library/src/servicelib/file_utils.py, packages/service-library/src/servicelib/file_utils.pyL48-R51)Related issue/s
How to test
Dev-ops