termux / termux-tools

Scripts and small programs that are packaged into termux's termux-tools package
GNU General Public License v3.0
284 stars 62 forks source link

Dalvikvm is way slow on Android 12 #15

Closed hanyman7 closed 2 years ago

hanyman7 commented 2 years ago

When running a simple .dex hello world it takes about 3.8 seconds.

The default of -Xnoimage-dex2oat on pre Android 12 has changed to -Ximage-dex2oat.

So a lot of time is taken to precompile dex files and all jar dependencies to a binary ELF as though it is a full APK :-( only to be deleted since it is not required to be persisted via other dalvikvm option. This is all done prior to calling main.

This script needs to be updated to specify -Xnoimage-dex2oat as a default

agnostic-apollo commented 2 years ago

Duplicate of termux/termux-tools#16