Android Question Slow Compiling and Convert Dex

Chianca

Member
Licensed User
Longtime User
Hello, I'm having some problems when trying to deploy or debug my App. It has some libs and files, but it's taking a long time compiling and converting DEX, as you can see in the image below.



I have Increased MaxRamForDex for 3000, but not positive effect.
MaxRamForDex=3000

Computer: Intel Core i7, 8GB Ram, SSD

How can I improve the time of converting byte code - dex?
 

Attachments

  • b4a-compile.png
    11.6 KB · Views: 166
Last edited:

Scantech

Well-Known Member
Licensed User
Longtime User
First Run

Second Run

This is a very very very huge project.

Just wanted to share and compare it with you. Your Debugger engine code and java should decrease after 1st attempt in compilation. The top 2 quote is in debug mode. My release mode can take anywhere from 120 to 200 seconds with covert byte code.

I have Samsung Notebook 7 from 2016 with 12GB memory and iCore 7.
 
Upvote 0

kisoft

Well-Known Member
Licensed User
Longtime User
I don't know if it will do anything but you are using old java 8 version. Maybe try to go to 11. Your computer has good parameters but what is its state, you should know best.

P.S.
Also, try to clean the project from time to time (ctrl + p).
 
Last edited:
Upvote 0

Chianca

Member
Licensed User
Longtime User
First step is to upgrade to B4A v10.2.

I have upgraded to B4X v10.2. Here are the new compile time.



That's all next 140 seconds. This is normal for medium to huge project?
There is more things to check to improve speed?


Thank You!
 
Upvote 0

fatman

Active Member
Licensed User
Longtime User
Check if antivirus increases compilation time.
Microsoft Defender slowed down B4A on my computer significantly.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…