Skip to content

Any plans to replace sax parser? #134

@JoelBrenstrum

Description

@JoelBrenstrum

Hi,

I'm currently using this to give me some SVG functionality in a node server. Any future plans to replace sax with a more performant parser?

I have a few very large SVGS (>500000 paths) and the parsing takes over a minute.
Chrome is able to render these svgs in a few seconds.

saxes is a near drop in and claims to be more performant
https://github.com/lddubeau/saxes

sax-wasm claims to be very fast and has a web assembly build.
https://www.npmjs.com/package/sax-wasm

An alternative would also be to allow a custom parser to be used in place of sax.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions