Moxy icon indicating copy to clipboard operation
Moxy copied to clipboard

Make moxyPresenter property delegate inline

Open alaershov opened this issue 2 years ago • 0 comments

Apparently our moxyPresenter property delegate can be optimized:

Property delegation to noinline function(s) causes (reflective) KProperty creation which slows down initialization and should be avoided in applications which should start up fast.

The fix is either to delegate to inline functions (optimized since Kotlin 1.3.60) or to delegate manually.

See these issues in Kotlin YouTrack:

alaershov avatar Dec 13 '21 15:12 alaershov