almosr / android-svg-code-render

Convert SVG files into Java source and use it in your Android app
Apache License 2.0
24 stars 3 forks source link

Java output contains unnecessary operations which can be optimized away #57

Open almosr opened 9 years ago

almosr commented 9 years ago

The Java output is somewhat optimized, unused instances for various drawing classes are removed, useless Canvas.save() and Canvas.restore() calls are eliminated.

However, there is still room for improvement, for example too many Matrix class instances are created which are not too useful at the end (usually merged with other Matrix instances using Matrix.preConcat() calls).

Further optimization methods are needed for the output.