jzbrooks / vgo

vector graphic optimization
MIT License
39 stars 1 forks source link

Avoid elision by even odd rules #59

Closed jzbrooks closed 1 month ago

jzbrooks commented 1 month ago

It might be possible to avoid evenOdd issues by determining if a particular path would be omitted from the final render based on surroundings, but this is simpler for now.

vgo# vgo/build/libs/vgo --indent 2 --stats vgo/src/test/resources/baseline/eleven_below_single_optimized.xml -o ~/Desktop/test.xml
Size before: 59.29 KiB
Size after: 57.71 KiB
Percent saved: 2.6519519024872347

After the change.