Skip to content

Optimize HTMLHelper file#247

Open
gmathi wants to merge 1 commit intomasterfrom
cursor/optimize-htmlhelper-file-f982
Open

Optimize HTMLHelper file#247
gmathi wants to merge 1 commit intomasterfrom
cursor/optimize-htmlhelper-file-f982

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.

2 participants