Skip to content

Comments

Optimize HTMLHelper file#247

Merged
gmathi merged 2 commits intomasterfrom
cursor/optimize-htmlhelper-file-f982
Feb 24, 2026
Merged

Optimize HTMLHelper file#247
gmathi merged 2 commits 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.

cursoragent and others added 2 commits July 10, 2025 03:09
@gmathi gmathi merged commit 21c1472 into master Feb 24, 2026
@gmathi gmathi deleted the cursor/optimize-htmlhelper-file-f982 branch February 24, 2026 03:54
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