Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance: don't create a double clone in point #1251

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

Glandos
Copy link
Contributor

@Glandos Glandos commented Jan 27, 2022

The Point instance is already created, so don't create a new one.

Edit: also don't clone the newly created Matrix from getScreenCTM

@Glandos Glandos changed the title Performance don't create a double clone in point Performance: don't create a double clone in point Jan 27, 2022
@Fuzzyma Fuzzyma merged commit 53af7dd into svgdotjs:master Jan 27, 2022
@Fuzzyma
Copy link
Member

Fuzzyma commented Jan 27, 2022

Good catch!

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.

None yet

2 participants