Custom .iq package to reduce memory usage [Info No Longer Valid]

Folks, I sometimes read posts about crashes due to high memory usage, especially if your application supports a lot of devices..

I don't know if you're doing something like that or not, but as you know, memory usage is increasing with every supported device you added to your app. Good trick is to make a custom .iq package. I was on ~50 KB in development version of ActiFace 3.0, which I wanted to release with CIQ 1.2.0. It was due to higher CIQ VM memory consumption and due to new supported devices (230/630). Every new line of the code was shifting the app closer to the memory border and I wasn't able to add new features. That's the reason I decided to split ActiFace into several projects by screen shape, so now I have 4 :) (all with the same ID)



Of course, it brought necessity of merging of the new code into all clones (that's why I started using Git :) ), but I was able to clean and dramatically reduce the code for each screen type.

Now, I always build four .iq files and then create single one by copying all subfolders together (as you know, .iq file is just a ZIP), and merging manifest files into single one in the final package.




Now, I added a lot of a new code, added Tall support and I'm still on ~34 kB of memory usage. The biggest advantage is that each new device don't affect memory requirements.