Skip to content

gh-132983: Remove EndlessZstdDecompressor remains #133856

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

Merged

Conversation

Rogdham
Copy link
Contributor

@Rogdham Rogdham commented May 10, 2025

cc @emmatyping @AA-Turner (can't request review)

In pyzstd there was an EndlessZstdDecompressor class implemented in the C module. Some remains of the code were left, this PR aims to remove them.

In the comments, <D> refers to ZstdDecompressor whereas <E> refers to EndlessZstdDecompressor. I cleaned that up as well.

There was _unused_char_for_align in the ZstdDecompressor struct. My understanding is that it was placed only for optimization in decompressor_reset_session when setting several attributes to 0 at once. I removed it here, but if needed I can re-add it (twice to compensate the removal of at_frame_edge).

@ZeroIntensity ZeroIntensity requested a review from emmatyping May 10, 2025 23:06
@AA-Turner AA-Turner enabled auto-merge (squash) May 11, 2025 01:38
@AA-Turner AA-Turner merged commit 878e0fb into python:main May 11, 2025
38 checks passed
@miss-islington-app
Copy link

Thanks @Rogdham for the PR, and @AA-Turner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 11, 2025
…nGH-133856)

(cherry picked from commit 878e0fb)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented May 11, 2025

GH-133859 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 11, 2025
AA-Turner added a commit that referenced this pull request May 11, 2025
…33856) (#133859)

gh-132983: Remove leftovers from EndlessZstdDecompressor (GH-133856)
(cherry picked from commit 878e0fb)

Co-authored-by: Rogdham <3994389+Rogdham@users.noreply.github.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
@Rogdham Rogdham deleted the remove-endlessdzstddecompressor-remains branch May 11, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants