I'm sure if this topic has been discussed, but I can't find definitive answers, or the answers are very old. Since we have no tools to measure CPU load - this question is for our Garmin insiders, like Travis and Brandon (maybe others who have this info).
I'm preloading all app properties onSettingsChanged, and loading Activity, System, ActivityMonitor and other system-related info into local vars just once per update or per a change of settings to avoid CPU load for every piece of data I'm displaying in the watch face.
The problem is - that uses a lot of memory.
I understand that to free up the memory I have to remove all those private vars and reference global objects on the fly.
The question is - how does it impact the CPU/battery load? Is there a measurable difference between accessing a private var vs. Application.getApp().getProperty?
Also, loading ActivityMonitor.getInfo() into a private var once and using that var N times vs. calling ActivityMonitor.getInfo() N times?
Thank you!