Hi There
I am working on a relatively large project.
At a certain point (when the project was almost 2/3 of the Current size ), I started facing issues with the compiler being very slow and my PC shutting down (sudden death) during compile.
By changing the ini file to:
MaxRamForDex=1536
The issue was resolved.
Now that the project grew more in size, I Started facing the same issue again (PC Shutdown and very slow compile). It is important to mention that before the shutdown, the PC fan goes crazy during compile.
Some project Info:
1. The project use google play service ( google maps and gcm )
2. over 30K lines
4. apk size is 6.8MB
One thing I have noticed:
Moving code from inside the activities to create classes ( the exact same code more or less), increased the compile time by a lot
PC & Compile Info:
Windows 7, AMD 3100MHZ 4 cores, 8GBRAM)
Compiler Window info in release mode
B4A version: 5.50
Parsing code. (1.06s)
Compiling code. (1.76s)
Compiling layouts code. (0.01s)
Generating R file. (0.42s)
Compiling generated Java code. (11.55s)
Convert byte code - optimized dex. (31.36s)
Packaging files. (2.78s)
Copying libraries resources (0.10s)
Found 3 resource files.
Signing package file (private key) (4.07s)
ZipAlign file. (0.12s)
Installing file to device.
In Debug Mode
B4A version: 5.50
Parsing code. (1.94s)
Compiling code. (4.79s)
Compiling layouts code. (0.01s)
Generating R file. (0.79s)
Compiling generated Java code. (9.57s)
Convert byte code - optimized dex. (45.98s)
Packaging files. (4.54s)
Copying libraries resources (0.13s)
Found 3 resource files.
Signing package file (private key) (3.39s)
ZipAlign file. (0.07s)
Installing file to device.
After following the instructions in this thread
https://www.b4x.com/android/forum/t...-google-play-apis-into-b4a-application.61537/
In Debug Mode
B4A version: 5.50
Parsing code. (1.35s)
Compiling code. (2.68s)
Compiling layouts code. (0.01s)
Generating R file. (0.43s)
Compiling generated Java code. (12.31s)
Convert byte code - optimized dex. (44.45s)
Packaging files. (3.10s)
Copying libraries resources (0.11s)
Found 3 resource files.
Signing package file (private key) (2.06s)
ZipAlign file. (0.08s)
Installing file to device. (31.57s)
Device serial: ZX1D529NPB
Completed successfully.
Also I can only use the debugger in legacy mode
I tried Clean Project but I never tried clean unused files, as I don't think there are many and I am also not sure how would this effect the compilation time.
any help is greatly appreciated
Thanks in advance
I am working on a relatively large project.
At a certain point (when the project was almost 2/3 of the Current size ), I started facing issues with the compiler being very slow and my PC shutting down (sudden death) during compile.
By changing the ini file to:
MaxRamForDex=1536
The issue was resolved.
Now that the project grew more in size, I Started facing the same issue again (PC Shutdown and very slow compile). It is important to mention that before the shutdown, the PC fan goes crazy during compile.
Some project Info:
1. The project use google play service ( google maps and gcm )
2. over 30K lines
4. apk size is 6.8MB
One thing I have noticed:
Moving code from inside the activities to create classes ( the exact same code more or less), increased the compile time by a lot
PC & Compile Info:
Windows 7, AMD 3100MHZ 4 cores, 8GBRAM)
Compiler Window info in release mode
B4A version: 5.50
Parsing code. (1.06s)
Compiling code. (1.76s)
Compiling layouts code. (0.01s)
Generating R file. (0.42s)
Compiling generated Java code. (11.55s)
Convert byte code - optimized dex. (31.36s)
Packaging files. (2.78s)
Copying libraries resources (0.10s)
Found 3 resource files.
Signing package file (private key) (4.07s)
ZipAlign file. (0.12s)
Installing file to device.
In Debug Mode
B4A version: 5.50
Parsing code. (1.94s)
Compiling code. (4.79s)
Compiling layouts code. (0.01s)
Generating R file. (0.79s)
Compiling generated Java code. (9.57s)
Convert byte code - optimized dex. (45.98s)
Packaging files. (4.54s)
Copying libraries resources (0.13s)
Found 3 resource files.
Signing package file (private key) (3.39s)
ZipAlign file. (0.07s)
Installing file to device.
After following the instructions in this thread
https://www.b4x.com/android/forum/t...-google-play-apis-into-b4a-application.61537/
In Debug Mode
B4A version: 5.50
Parsing code. (1.35s)
Compiling code. (2.68s)
Compiling layouts code. (0.01s)
Generating R file. (0.43s)
Compiling generated Java code. (12.31s)
Convert byte code - optimized dex. (44.45s)
Packaging files. (3.10s)
Copying libraries resources (0.11s)
Found 3 resource files.
Signing package file (private key) (2.06s)
ZipAlign file. (0.08s)
Installing file to device. (31.57s)
Device serial: ZX1D529NPB
Completed successfully.
Also I can only use the debugger in legacy mode
I tried Clean Project but I never tried clean unused files, as I don't think there are many and I am also not sure how would this effect the compilation time.
any help is greatly appreciated
Thanks in advance
Last edited: