Alberto Michelis Well-Known Member Licensed User Longtime User Feb 7, 2022 #1 Ive disable the dex optimization but it still very slow to compile. How to solve it? Thanks
William Lancee Well-Known Member Licensed User Longtime User Feb 7, 2022 #2 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. Last edited: Feb 7, 2022 Upvote 0
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.
Alberto Michelis Well-Known Member Licensed User Longtime User Feb 7, 2022 #3 Its a good CPU and no av, no nothing... Upvote 0
William Lancee Well-Known Member Licensed User Longtime User Feb 7, 2022 #4 Most of the time is involved in Dex conversion (even with optimization off) I assume you've tried this: Increase MaxRamForDex: https://www.b4x.com/android/forum/t...zed-dex-error-need-help-pls.10428/#post-58036 My setting is: MaxRamForDex = 4096 Note: if you change this setting, make sure B4A is not running, if it is it will just change it back. Upvote 0
Most of the time is involved in Dex conversion (even with optimization off) I assume you've tried this: Increase MaxRamForDex: https://www.b4x.com/android/forum/t...zed-dex-error-need-help-pls.10428/#post-58036 My setting is: MaxRamForDex = 4096 Note: if you change this setting, make sure B4A is not running, if it is it will just change it back.
William Lancee Well-Known Member Licensed User Longtime User Feb 7, 2022 #5 You should probably correct the title of this thread to 11.2 to attract replies from other members. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2022 #6 Alberto Michelis said: Ive disable the dex optimization but it still very slow to compile. Click to expand... 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
Alberto Michelis said: Ive disable the dex optimization but it still very slow to compile. Click to expand... 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.
Alberto Michelis Well-Known Member Licensed User Longtime User Feb 8, 2022 #7 Thanks, this are the libs Im using: Attachments 1644323754083.png 60.1 KB · Views: 437 Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2022 #8 First step is to enable the optimized dexer and increase MaxRamForDex. Upvote 0
Alberto Michelis Well-Known Member Licensed User Longtime User Feb 8, 2022 #9 I just have MaxRamForDex=4096 and if I enable optimize dexter it takes another 130 seconds to compile. Upvote 0
I just have MaxRamForDex=4096 and if I enable optimize dexter it takes another 130 seconds to compile.
Erel B4X founder Staff member Licensed User Longtime User Feb 8, 2022 #10 Alberto Michelis said: f I enable optimize dexter it takes another 130 seconds to compile Click to expand... 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
Alberto Michelis said: f I enable optimize dexter it takes another 130 seconds to compile Click to expand... 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.