Skip to content

Simplify HTMLTree.build/1 by avoiding redundant build_tree calls#683

Merged
philss merged 1 commit intophilss:mainfrom
preciz:simplify-html-tree-build
Apr 15, 2026
Merged

Simplify HTMLTree.build/1 by avoiding redundant build_tree calls#683
philss merged 1 commit intophilss:mainfrom
preciz:simplify-html-tree-build

Conversation

@preciz
Copy link
Copy Markdown
Contributor

@preciz preciz commented Apr 15, 2026

Text and comment nodes are leaf nodes and therefore don't need the recursive
build_tree function. This change simplifies the code and provides
a small speedup during tree construction for these node types.

Text and comment nodes are leaf nodes and don't need the recursive
build_tree function. This change simplifies the code and provides
a small speedup during tree construction for these node types.
@philss philss merged commit 0680554 into philss:main Apr 15, 2026
6 checks passed
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