Add custom zstd compression level#2199
Conversation
|
Could you please add a test and mention this new variable in the doc? thanks |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2199 +/- ##
===========================================
+ Coverage 30.91% 42.80% +11.89%
===========================================
Files 53 53
Lines 20112 20484 +372
Branches 9755 9685 -70
===========================================
+ Hits 6217 8768 +2551
- Misses 7922 8075 +153
+ Partials 5973 3641 -2332 ☔ View full report in Codecov by Sentry. |
|
This should alter the hash key, too. |
|
Thank you for reply.
This is just cache compression level and don't affect to decompression mechanism. |
|
Thank you for reply.
It seems no tests for SCCACHE_DIR and SCCACHE_CACHE_SIZE that is basic feature like compression level.
I'll add this to docs. Is this okay adding to Local.md and Configuration.md? |
I would say there is. If you're setting the variable for greater compression, you're probably expecting your cache to be more greatly compressed, not to continue containing whatever it contains right now. Of course, the caveat is that those lesser compressed objects will stay in the cache too, until the cache is full and they are pushed out as being the least recently used. |
|
Thank you for reply!
But when the hash changes, some problem can occur. Rather than that, just adding a warning as "already compressed cache are not replaced" seems reasonable. |
|
could you please add a test in the integration testsuite ? |
|
@sylvestre |
Co-authored-by: Lucio Franco <[email protected]>
fix #2187
Allow custom zstd cache compression level