Skip to content

Use importNode to clone templates#103

Merged
WorldMaker merged 1 commit intomainfrom
max/generous-rhinoceros
Sep 4, 2025
Merged

Use importNode to clone templates#103
WorldMaker merged 1 commit intomainfrom
max/generous-rhinoceros

Conversation

@WorldMaker
Copy link
Copy Markdown
Owner

Yesterday I learned that template contents are stored in other documents, so adding them or a direct clone of them needs a full tree walk to "adopt" them whereas importNode does the adoption at the time of cloning. It is an easy win for a modest performance improvement.

Yesterday I learned that template contents are stored in other documents, so adding them or a direct clone of them needs a full tree walk to "adopt" them whereas importNode does the adoption at the time of cloning. It is an easy win for a modest performance improvement.
@WorldMaker WorldMaker merged commit 8028d3e into main Sep 4, 2025
3 checks passed
@WorldMaker WorldMaker deleted the max/generous-rhinoceros branch September 4, 2025 17:00
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.

1 participant