Skip to content

Conversation

@gmathi
Copy link
Owner

@gmathi gmathi commented Jul 10, 2025

Optimize HtmlCleaner.kt for improved performance, memory usage, and code readability.

This PR refactors HtmlCleaner.kt by introducing cached constants and regex patterns, utilizing more efficient data structures (Sets), implementing lazy initialization for selectors, and extracting CSS generation into dedicated functions. These changes reduce redundant operations, improve lookup times, and enhance overall code maintainability and efficiency.

Co-authored-by: gmathi.developer <gmathi.developer@gmail.com>
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.

3 participants