Tuesday, May 1, 2012

How app icons moved online

Since the very first release of Mundus, almost every module included an icon that was shown to the user on the main interface, and on the supported applications form. Over time, more and more modules where added, reaching a total of 98 supported apps on the last commit, and 92 images that needed to be distributed. Although the size of each image is insignificant (~10 KB), the total size of them reached 1.2 MB, and they needed to be included on every build. As a result of this change, the size of the Mundus binary was reduced from ~1.7 MB to ~540 KB, almost 1/3 of the original size.

As of today, these images will be hosted  online, and fetched only when needed. A local cache will contain the downloaded images, and on every new version that is executed, or at per-user request, the cache will be cleared.

No comments:

Post a Comment