mirror of
https://github.com/zxing/zxing.git
synced 2025-01-13 04:07:27 -08:00
More aggressive inlining, to inline some key methods like BitArray.get(), resulting in significant performance boost
git-svn-id: https://zxing.googlecode.com/svn/trunk@311 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
7813847052
commit
c32827af04
|
@ -141,6 +141,7 @@
|
||||||
<target name="optimize" depends="compile" unless="debug">
|
<target name="optimize" depends="compile" unless="debug">
|
||||||
<jar basedir="${outdir-classes}" destfile="temp.jar"/>
|
<jar basedir="${outdir-classes}" destfile="temp.jar"/>
|
||||||
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
|
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
|
||||||
|
<jvmarg value="-Dmaximum.inlined.code.length=32"/>
|
||||||
<arg value="-injars temp.jar"/>
|
<arg value="-injars temp.jar"/>
|
||||||
<arg value="-outjars optimized.jar"/>
|
<arg value="-outjars optimized.jar"/>
|
||||||
<arg value="-libraryjars ${android-jar}"/>
|
<arg value="-libraryjars ${android-jar}"/>
|
||||||
|
|
|
@ -138,13 +138,13 @@
|
||||||
|
|
||||||
<move file="${jar-name}.jar" tofile="temp.jar"/>
|
<move file="${jar-name}.jar" tofile="temp.jar"/>
|
||||||
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
|
<java jar="${WTK-home}/bin/proguard.jar" fork="true" failonerror="true">
|
||||||
|
<jvmarg value="-Dmaximum.inlined.code.length=32"/>
|
||||||
<arg value="-injars temp.jar"/>
|
<arg value="-injars temp.jar"/>
|
||||||
<arg value="-outjars ${jar-name}.jar"/>
|
<arg value="-outjars ${jar-name}.jar"/>
|
||||||
<arg value="-libraryjars ${WTK-home}/lib/cldcapi11.jar"/>
|
<arg value="-libraryjars ${WTK-home}/lib/cldcapi11.jar"/>
|
||||||
<arg value="-libraryjars ${WTK-home}/lib/midpapi20.jar"/>
|
<arg value="-libraryjars ${WTK-home}/lib/midpapi20.jar"/>
|
||||||
<arg value="-libraryjars ${WTK-home}/lib/mmapi.jar"/>
|
<arg value="-libraryjars ${WTK-home}/lib/mmapi.jar"/>
|
||||||
<arg value="-libraryjars ${WTK-home}/lib/jsr234.jar"/>
|
<arg value="-libraryjars ${WTK-home}/lib/jsr234.jar"/>
|
||||||
<arg value="-libraryjars ../core/core.jar"/>
|
|
||||||
<arg value="-microedition"/>
|
<arg value="-microedition"/>
|
||||||
<arg value="-keep public class com.google.zxing.client.j2me.ZXingMIDlet"/>
|
<arg value="-keep public class com.google.zxing.client.j2me.ZXingMIDlet"/>
|
||||||
<arg value="-optimizationpasses 7"/>
|
<arg value="-optimizationpasses 7"/>
|
||||||
|
|
Loading…
Reference in a new issue