Skip to content

Release v2.1.0 - #24

Merged
kurtmckee merged 15 commits into
releasesfrom
release/2.1.0
Aug 2, 2026
Merged

kurtmckee merged 15 commits into
releasesfrom
release/2.1.0

Conversation

@kurtmckee

Copy link
Copy Markdown
Member

Fixed

  • Close tags more correctly, even if the end tag has trailing text.

    For example, </tag bonus> now closes <tag> correctly.
    The trailing content is not available to parsers.

  • Fix quadratic CPU usage in SGMLParser.feed().

    This can occur when a large document with an unfinished token
    (like <a href="...) is fed into the parser in very small increments.

    The new implementation doesn't significantly change peak memory usage.

Changed

  • Improve the closing tag search behavior of SGMLParser.finish_endtag().

    Previously, the method always searched the entire tag stack
    to close the innermost tag, which had a higher search cost.
    The tag stack is now searched in reverse order
    and breaks on the first matching tag.

@kurtmckee kurtmckee self-assigned this Aug 2, 2026
@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 feedparser-sgmllib | 🛠️ Build #33878816 | 📁 Comparing b934b57 against latest (15cbea9)

  🔍 Preview build  

1 file changed
± changelog/index.html

@kurtmckee
kurtmckee merged commit 36924f1 into releases Aug 2, 2026
4 checks passed
@kurtmckee
kurtmckee deleted the release/2.1.0 branch August 2, 2026 21:27
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.

1 participant