You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This has two advantage, the first is in tesness as we could even use static import which would allow:
callSerially(() -> {...});
addToQueue(...);
The second advantage is in performance as the getInstance() call would be eliminated (it does have a cost on iOS which doesn't have a JIT). But it can be even faster assuming we eliminate the suclassing of the CodenameOneImplementation class and just replace it with the real implementation per platform. This would eliminate virtual calls and would allow the static compiler to optimize deep into the CodenameOneImplementation class. Event if we don't do that the performance difference should be noticeable on iOS and possibly Android.