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

Reimplement find_decompressed_size without using static-only API #63

Merged
merged 5 commits into from
Sep 7, 2024

Conversation

mkitti
Copy link
Member

@mkitti mkitti commented Sep 4, 2024

Alternative to #62, that implements ZSTD_findDecompressedSize as find_decompressed_size in Julia using the public (non-static-only) API.

ZSTD_getFrameContentSize only obtains the decompressed size of a single frame. find_decompressed_size obtains the accumulated size over multiple frames.

find_decompressed_size should continue to respond identically to ZSTD_findDecompressedSize.

@mkitti mkitti force-pushed the mkitti-find_decompressed_size branch from 230a7aa to 59c54c3 Compare September 4, 2024 05:43
Copy link

codecov bot commented Sep 4, 2024

Codecov Report

Attention: Patch coverage is 91.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 61.55%. Comparing base (31cf742) to head (55fff3d).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/libzstd.jl 91.66% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master      #63       +/-   ##
===========================================
+ Coverage   36.96%   61.55%   +24.59%     
===========================================
  Files           5        5               
  Lines         560      372      -188     
===========================================
+ Hits          207      229       +22     
+ Misses        353      143      -210     

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

@mkitti mkitti force-pushed the mkitti-find_decompressed_size branch from 51ed658 to 5b411e8 Compare September 4, 2024 05:53
@mkitti mkitti force-pushed the mkitti-find_decompressed_size branch from ff636f7 to 813632f Compare September 4, 2024 06:10
@mkitti mkitti requested a review from nhz2 September 4, 2024 12:40
@mkitti mkitti marked this pull request as ready for review September 4, 2024 12:44
src/libzstd.jl Outdated Show resolved Hide resolved
src/libzstd.jl Outdated Show resolved Hide resolved
src/libzstd.jl Show resolved Hide resolved
mkitti and others added 2 commits September 5, 2024 22:02
Co-authored-by: Nathan Zimmerberg <[email protected]>
Co-authored-by: Nathan Zimmerberg <[email protected]>
@nhz2 nhz2 self-requested a review September 7, 2024 02:32
@mkitti
Copy link
Member Author

mkitti commented Sep 7, 2024

Is this a breaking change?

@mkitti mkitti merged commit 1653f08 into master Sep 7, 2024
8 checks passed
@mkitti mkitti deleted the mkitti-find_decompressed_size branch September 7, 2024 16:29
@nhz2
Copy link
Member

nhz2 commented Sep 7, 2024

No, but we can add some downstream tests to check.

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.

2 participants