[PR] Defer visible/invisible HTML rendering until actually req uested [spamassassin]

bigio (via GitHub) <[email protected]> Tue, 21 Jul 2026 15:30:42 -0000
Newsgroups gmane.mail.spam.spamassassin.devel
Message-ID <[email protected]>
bigio opened a new pull request, #31:
URL: https://github.com/apache/spamassassin/pull/31

   rendered() unconditionally computed get_rendered_text() three times per HTML part (full, visible-only, invisible-only), each doing a full mask-and-whitespace-cleanup pass over the text. Keep the HTML parser object around instead and only compute the visible/invisible variants inside visible_rendered()/invisible_rendered() when something actually calls them, since not every ruleset uses invisible-text rules.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]