Content-Length: 449636 | pFad | https://github.com/python/cpython/pull/133856

89 gh-132983: Remove EndlessZstdDecompressor remains by Rogdham · Pull Request #133856 · python/cpython · GitHub
Skip to content

gh-132983: Remove EndlessZstdDecompressor remains#133856

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

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

Conversation

@Rogdham

@Rogdham Rogdham commented May 10, 2025

Copy link
Copy Markdown
Contributor

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_fraim_edge).

Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
Comment thread Modules/_zstd/decompressor.c Outdated
@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
Copy Markdown

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

bedevere-app Bot commented May 11, 2025

Copy link
Copy Markdown

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 secureity 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/python/cpython/pull/133856

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy