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

ART refuses precompiling of large methods #72

Closed almosr closed 8 years ago

almosr commented 8 years ago

When a vector render class is loaded on Marshmallow then Android RunTime sends a message in the logs, for example:

I/dex2oat: Method exceeds compiler instruction limit: 21960 in void ..render_0(android.graphics.Canvas)

As far as I can tell this log is referring to a harmless issue, since the rendering method will be executed, but potentially not as optimal as it could be. Unfortunately there is only a rather loose correlation between the number of source file lines and the actual number of instructions in the Dex output, but probably less code output could fix the issue. (On the other hand it will contribute into the dreaded method count but the effect is probably insignificant.)