Skip to content

Avoid Android Lint's [VectorPath] warning #25

@jzbrooks

Description

@jzbrooks
Error: Very long vector path (n characters), which is bad for performance. Considering reducing precision, removing minor details or rasterizing vector. [VectorPath]

There's a certain length path, n, that we should treat as a maximum. By default vgo should:

  • Split long paths when converting an SVG into a VD
  • Avoid merging paths that will exceed n characters.

Opting out of this behavior may be a good candidate for a rule in the configuration language (#21). It has the potential to make the overall file more compact at the cost of a few milliseconds of rendering work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions