Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-134938: Addset_pledged_input_size to ZstdCompressor#135010

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
emmatyping wants to merge9 commits intopython:main
base:main
Choose a base branch
Loading
fromemmatyping:zstd-set-pledged-input-size

Conversation

emmatyping
Copy link
Member

@emmatypingemmatyping commentedJun 1, 2025
edited by github-actionsbot
Loading

This PR adds a new methodset_pledged_input_size(), which allows users to declare up front how much data will be written to the compressor for a given frame. This combined withCompressionParameter.content_size_flag allows users to ensure that even for streaming compression scenarios the content size is written into the zstd frame header, which is beneficial for reducing decompression memory usage.


📚 Documentation preview 📚:https://cpython-previews--135010.org.readthedocs.build/

@emmatyping
Copy link
MemberAuthor

cc@Rogdham

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@serhiy-storchakaserhiy-storchakaserhiy-storchaka left review comments

@RogdhamRogdhamRogdham left review comments

@ZeroIntensityZeroIntensityZeroIntensity left review comments

@DangNhutNguyenDangNhutNguyenDangNhutNguyen approved these changes

@gpsheadgpsheadAwaiting requested review from gpshead

@AA-TurnerAA-TurnerAwaiting requested review from AA-Turner

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

6 participants
@emmatyping@gpshead@serhiy-storchaka@Rogdham@ZeroIntensity@DangNhutNguyen

[8]ページ先頭

©2009-2025 Movatter.jp