Under Review
over 1 year ago

sdk 4.2.1 memory consumption

eclipse, win

widget f6p 

- 4.1.7 11kB

- 4.2.1.16.5kB

+6,5kB on start!!!!

6.5kB/28kB almost 25% more memory just because using 4.2.1....

so if glance uses e.g. a bigger properties (has to be the same, no scope), the same like app usually crash on start

  • I've installed 4.2.1 again but without devices and difference is minimal now.

    So maybe problem is not with compiler but new sim.

  • exactly the same parameters (building once, closing sim, changing sdk, building again) and -5.5kb

    for watch face no difference, for widget as on pictures, maybe compilation provider feature

    and still x2 bigger peak than expected 8kB (about 2x settings). Probably settings are read first to memory than dictionary is built and providing to app and whole process in app memory. Why system doesn't do one part in its memory? The same is when changing json respond to dictionary in wereq.

    Is it impossible to write any a bit complicated app... 

  • I don't see any change between 4.1.7 and 4.2.1. Are you sure the other compiler parameters were the same?

  • next thing after 4.2.1 all 4.0 devices has to be compiled  with 4.2.1 so I have to compile older device with 4.2.1 too

    uninstalling 4.2.1 nothing change...

    BUILD: ERROR: Device 'epix2' requires an SDK version of 4.2.0 or greater to be compiled. The current SDK version is 4.1.7. Please update your SDK using the Connect IQ SDK Manager.

  • f6p crash so hade to change memory for glance in compiler.json

    4.2.1

    4.1.7