Lazy Load Code (or memory optimization)

Former Member
Former Member
Good day,

The issue is that my codebase takes ~25k of memory. Combined with resources, app settings and data I'm hitting the limits on old watches. Hence, there is almost no way to add functionality for newer watches, since an old ones will start to crash with out of memory. I also do not see a split by ConnectIQ version on ConnectIQ Store, so I can support two versions of an app for old and new watches.

I have a question regarding if there is any known way to optimize memory taken by the code? The only way I found is that resources doesn't take memory until you load them. However, resources are way too limited. I need a way to not load bigger chunks of code into the memory until I actually want them.

Thanks!