|
|
|
|
|
by vbezhenar
2520 days ago
|
|
I've found a cheap trick to compress Java software: extract every .jar file (those are zip archives) and compress the whole thing with a proper archiver (e.g. 7-zip).
One example from my current project:
original jar files: 18 MB
expanded jar files: 37 MB
compressed with WinRar: 10 MB And that's just a little project. For big projects there could be hundreds of megabytes of dependencies. Nobody really cares about that... |
|
It does matter for e.g. Android apps though. But at the same time, the size of the eventual .jar is something that can be optimized by Google / the Android store as well, using what you just described for starters.
I know Apple's app store will optimize an app and its resources for the device that downloads it. As a developer you have to provide all image resources in three sizes / pixel densities for their classes of devices. They also support modular apps now, that download (and offload) resources on demand (e.g. level 2 and beyond of a game, have people get past level 1 first before downloading the rest).