Skip to content

performance: speed up mergePath child node removal#2216

Merged
KTibow merged 1 commit into
svg:mainfrom
mozzie:feat/improve_mergePaths_node_removal_performance
Apr 17, 2026
Merged

performance: speed up mergePath child node removal#2216
KTibow merged 1 commit into
svg:mainfrom
mozzie:feat/improve_mergePaths_node_removal_performance

Conversation

@mozzie

@mozzie mozzie commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Improved performance on mergePaths plugin. Changed the to-be-deleted node from a list to Set. I ran into performance issues with large files, and some of them were significantly improved by changing the data structure.

Does not change any behavior: the list was previously used just for .includes, which is an O(n) call. The .has in set is O(1).

@KTibow KTibow changed the title Improve mergePath child node removal performance performance: speed up mergePath child node removal Apr 17, 2026
@KTibow KTibow merged commit 581fe68 into svg:main Apr 17, 2026
17 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.

3 participants