Skip to content

Conversation

dhardy
Copy link
Collaborator

@dhardy dhardy commented Jan 24, 2023

Follow up on #376 adding async rendering for Svg.

Since the usvg::Tree type is neither Sync nor Send (see linebender/resvg#544), this re-parses the data each time the SVG is rendered (much faster than the render itself). The main drawback is that now we must retain access to the data somehow: here either by using a &'static [u8] or an Arc<[u8]>.

@dhardy dhardy merged commit 05f36ee into master Jan 25, 2023
@dhardy dhardy mentioned this pull request Feb 26, 2023
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