Android Question Slow compile in 11.2

Alberto Michelis

Well-Known Member
Licensed User
Longtime User
Ive disable the dex optimization but it still very slow to compile.
1644260188816.png

How to solve it?
Thanks
 

William Lancee

Well-Known Member
Licensed User
Longtime User
How big is your program? How slow is your CPU?
Here is my screen for compiling 3000+ lines of code in Release mode. My CPU is fast.

I have a feeling something else is chewing up your CPU cycles (antivirus, backup, indexing, virus, etc.)
By the way your B4A version is 11.2, like mine.

Screenshot 2022-02-07 143322.png
 
Last edited:
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Ive disable the dex optimization but it still very slow to compile.
This is expected. The optimized dexer makes compilation faster.

Nothing has changed in v11.2 related to the dexer step. I guess that you added a library that depends on Google Play Services components.

Increasing MaxRamForDex can indeed make a big difference.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
f I enable optimize dexter it takes another 130 seconds to compile
It is not so simple to measure the optimized dexer performance as it prepares things in the background and the state of these prepared objects varies.

If you enabled #MultiDex then compilation will be slower.
 
Upvote 0
Top