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

Optimization: De-duplicate features with the <use> element #301

Open
MayeulC opened this issue Jul 21, 2022 · 0 comments
Open

Optimization: De-duplicate features with the <use> element #301

MayeulC opened this issue Jul 21, 2022 · 0 comments

Comments

@MayeulC
Copy link

MayeulC commented Jul 21, 2022

That would be especially meaningful if the same base64-encoded image appears multiple times.

It can also be helpful for other shapes, but it changes how the svg behaves when modified, so it's probably better to disable the optimization by default.

I haven't looked at the code, but I imagine a hash can be constructed from the data of each element, and double-checked when there is a potential match.

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

No branches or pull requests

1 participant