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

reanimate-svg is slow #20

Open
5 tasks
joseedil opened this issue Oct 8, 2020 · 2 comments
Open
5 tasks

reanimate-svg is slow #20

joseedil opened this issue Oct 8, 2020 · 2 comments

Comments

@joseedil
Copy link
Collaborator

joseedil commented Oct 8, 2020

  • Don't force paths to be decoded. Something like Either [PathCommand] Text would be better. And perhaps use vectors instead of lists.
  • Don't convert to XML before serializing.
  • Don't serialize to String. Use blaze-svg to serialize directly to Text or directly to a file.
  • Don't use String internally, use Text instead. For inlined images, this makes a big difference.
  • Speculative: Compress SVG tree by using {-# UNPACK #-}?
@joseedil
Copy link
Collaborator Author

@lemmih would there be any practical difference between the strict and lazy versions of Text on this application?

@lemmih
Copy link
Member

lemmih commented Oct 12, 2020

I wouldn't think so.

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

2 participants