WebSafe 3.7github.com
|
|
🏠
Skip to content

gh-132983: Remove EndlessZstdDecompressor remains#133856

Merged
AA-Turner merged 4 commits intopython:mainfrom
Rogdham:remove-endlessdzstddecompressor-remains
May 11, 2025
Merged

gh-132983: Remove EndlessZstdDecompressor remains#133856
AA-Turner merged 4 commits intopython:mainfrom
Rogdham:remove-endlessdzstddecompressor-remains

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
Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…n#133856)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
taegyunkim pushed a commit to taegyunkim/cpython that referenced this pull request Aug 4, 2025
…n#133856)

Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants

Comments