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

usvg slow #468

Closed
JoKalliauer opened this issue Oct 6, 2021 · 2 comments
Closed

usvg slow #468

JoKalliauer opened this issue Oct 6, 2021 · 2 comments

Comments

@JoKalliauer
Copy link
Contributor

file: https://gitlab.gnome.org/GNOME/librsvg/uploads/028b1646a203b470ac46c3281c9b12f7/case.svg

time

usvg resvg librsvg2.50 inkscape batik
86,875s 100,089s 0,331s 1,605s 20,416s

Copyright

license:
-no permission
-maybe below Treshhold of orginality

author: https://gitlab.gnome.org/oleksandr.khylobokyi

source: https://gitlab.gnome.org/GNOME/librsvg/-/issues/683

@Shnatsel
Copy link
Contributor

Shnatsel commented Dec 7, 2021

I expected it to be slow due to some filter, but that is - surprisingly - not the case.

38% of the time is spent in usvg::converter::is_id_used. And another 63% in rctree::NodeEdge::next_item, mostly on incrementing reference counts.

Profile: https://share.firefox.dev/3pDAEK2

Tested on commit 5e4adf9

@RazrFalcon
Copy link
Owner

A weird edge-case. Too many very heavy patterns.

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

3 participants