and code is doing something like this (myawsomecomponent.brs😞
sub init() m.top.observeField("first", "get_first") end sub
' SLOW - accessing into m.top it take 16ms ' function latelyCalledFunction() as void print m.top.first end function
' improved performance - accessing into m it take 0ms ' function latelyCalledFunctionEnhanced() as void print m.first end function
function get_first(event as object) as void m.first = event.getData() end function
Same is if I use callFunc to execute function field.
In this case I am able to improve speed but still if I want send some data from component into component it took 16ms per each. Is there some performance effectively way to pass data from component to component?
I hope I can somehow use roMessagePort but not sure how could do that.