jzbrooks / vgo

vector graphic optimization
MIT License
39 stars 1 forks source link

Avoid Android Lint's [VectorPath] warning #25

Open jzbrooks opened 4 years ago

jzbrooks commented 4 years ago
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:

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.

jzbrooks commented 5 days ago

https://cs.android.com/android-studio/platform/tools/base/+/mirror-goog-studio-main:lint/libs/lint-checks/src/main/java/com/android/tools/lint/checks/VectorPathDetector.java;l=90