Speed Up Compile?

Bill Norris

Active Member
Licensed User
Longtime User
Below is the text from the compile dialog. The "Convert byte code" step is painfully slow. It pegs the CPU at 100%. Any ideas as to how I can speed that up or is this typical.


Compiling code. 0.72
Generating R file. 0.00
Compiling generated Java code. 7.80
Convert byte code - optimized dex. 83.31
Standard dexer.
Packaging files. 2.77
Signing package file (debug key). 11.92
ZipAlign file. 0.25
Installing file to device. 0.30
Installing with B4A-Bridge.
Installation will fail if the signing key is different than the previous used key.
In that case you will need to manually uninstall the existing application.

Completed successfully.
 

Scantech

Well-Known Member
Licensed User
Longtime User
Try cleaning file/project. That may help. If your coding is too large then you are probably stuck with the way it is.
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
I have noticed that using B4A-Bridge instead of ADB to connect to my phone, speeds up "convert byte code" step. The values you are getting is typical for ADB connection.
 
Upvote 0

Inman

Well-Known Member
Licensed User
Longtime User
In my case, the project I am currently working has almost 7000 lines of code, spread across 15 activities and involves 18 libraries as well. I normally use bridge to connect to my Nexus One to run this project. But when I make major changes to UI, I test it on my Galaxy Note too. So instead of switching bridge, I simply connect Note to my system via ADB over USB. And whenever I do this and hit F5 to compile, it takes over 90 seconds to finish "convert byte code" step. I also tried switching Nexus to ADB and Note to bridge but the result was same. As soon as I disconnect one of the devices from USB, the time drops to 25 seconds where it used to take 90 seconds. I have been seeing for the past 1 month during this development phase. May be it is due to my system but it sure happens.

And coming to my system it is an Athlon64 X2 3800+, with 3GB RAM, 2TB hard drive and GeForce 9600 GT graphic card, running Windows 7 Ultimate Edition 32 bit.
 
Upvote 0
Top