Android Question how to speed up compile steps

sirjo66

Well-Known Member
Licensed User
Longtime User
Hello guys,
I'm developing a very simple app, only two activity (NOT B4XPages)
One activity for to execute a simple calculation, and an activity for configuration.
I am running in "debug" mode (not legacy debugger).
Ok, I need now to do same change in code.
I stop the debugger, change some lines and then type F5.
The app restart in very few seconds (very well).
Now I change or add some lines, press again F5 and so on.
But some times, when I press F5 the compiler takes many time for to compile it, as you see in the attachment.
About 20 seconds for "Dex code" and 20 seconds for "Dex merge".
Why some times it needs to do it and some times not ?
There is a method for to speed up "Dex code" and "Dex merge" steps ?

Many thanks
Sergio
 

Attachments

  • Immagine.png
    Immagine.png
    22 KB · Views: 2

Erel

B4X founder
Staff member
Licensed User
Longtime User
Dex code + merge are usually much faster. Try to increase MaxRamForDex: https://www.b4x.com/android/forum/threads/how-to-change-maxramfordex-value.126997/#content

Why some times it needs to do it and some times not ?
The rapid debugger can in many cases reuse the already device installed app while applying your changes. Some changes, such as adding a global variable, require a full compilation. Cleaning the project will also result in a full compilation (which is good in some cases as the app will run faster).
 
Upvote 0

sirjo66

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top