Android Question Major rationalization and reduction in code volume produces negligible change in APK size?

JackKirk

Well-Known Member
Licensed User
Longtime User
Hi, just a curiosity question that probably is in Erel's court.

I have finally had the time to rationalize a major B4A app - as in the code volume has dropped by ~40%.

But there has been virtually no change in the APK size.

I'm curious to know why...
 

Num3

Active Member
Licensed User
Longtime User
The pre-compiler probably already optimizes the code before creating the final executable (aka removes bloat, duplicates, etc... ).
So the final size did not change, because most of it is due to the size of libraries that are linked and not your code itself. In my experiments i concluded that only around 5~15% of the size is my own code!
 
Upvote 0
Top