I have noticed in several places of my app that some execution times where not making any sense. I managed to trace the issue down to the use of functions. I have made a very simple app to test my findings.
I have downloaded this directly to my Android to rule out interface delays. Calling functions seem to be taking unreasonable times. I have tried this with several different arbitrary tasks with similar results.
Also the overhead on this simple app is 36Mb. Is that normal?
Hey @eddie.rebehy and @actech - we’re working on some (unrelated) updates to the function blocks which are in review at the moment and they will hopefully be out later this week or early next week.
Once that update is out we can start looking a bit closer at what’s going on here and start planning the next update. Just to be up front about this though, this is not something we’re going to be spending a significant amount of time on in the coming weeks.
@eddie.rebehy if you have a loop like this where you need to do something 1,000 times, our advice for the time being is to just place the blocks in-line, rather than creating functions for everything. This will allow you to get the fastest possible version of your app to your users, and in a future update you can then optimised the blocks.