Android Question how to increase the compilation speed?

Roberto P.

Well-Known Member
Licensed User
Longtime User
hello everyone,

I ask you if you know a method to increase the speed of compiling and transfer of the apk file from the PC to the device?

even if I changed pc, the transfer times have not improved, in particular the time to transfer an apk file of 11mb.

Usage 3.

Here are the times:

Compiling layouts code. (0.31s)
Organizing libraries. (1.35s)
Generating R file. (0.46s)
Compiling generated Java code. (11.09s)
Convert byte code - optimized dex. (19.08s)
Optimized dexer failed. Switching to Standard dexer.
Packaging files. (2.07s)
Copying libraries resources (0.10s)
Found 18 resource files.
Signing package file (debug key). (3.24s)
ZipAlign file. (0.41s)
Installing file to device. (30.18s)
Device serial: db188dbe
Completed successfully.


thaks
 

Roberto P.

Well-Known Member
Licensed User
Longtime User
yes, I also see it debug mode, until it starts applying.

here are the parameters that I set:

#DebuggerForceStandardAssets: true
#DebuggerDisableOptimizations: true
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
I tried to change the two parameters to false, but I see that the results are similar:


B4A Version: 7.80
Parsing code. (1.23s)
Compiling code. (1.17s)
Compiling layouts code. (0.10s)
Organizing libraries. (0.00s)
Generating R file. (0.46s)
Compiling generated Java code. (9.95s)
Convert byte code - optimized dex. (9.80s)
Packaging files. (1.89s)
Copying libraries resources (0.04s)
Found 18 resource files.
Signing package file (debug key). (1.62s)
ZipAlign file. (0.05s)
Installing file to device. (32.65s)
Device serial: db188dbe
Completed successfully.

it's a lot of 32 seconds to transfer the file and install the app

thank you
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
1: yes in the second test
#DebuggerForceStandardAssets: false
#DebuggerDisableOptimizations: false

2: release mode -
 
Upvote 0

Roberto P.

Well-Known Member
Licensed User
Longtime User
I tried, but it takes a few seconds longer
 
Upvote 0
Top