[SOLVED] When using synthetics, is there any perfo...
# announcements
g
[SOLVED] When using synthetics, is there any performance difference between: 1.
Copy code
class Holder(override val containerView: View) : ViewHolder(containerView), LayoutContainer {
    fun bind() {
        my_view
    }
}
2.
Copy code
class Holder(override val containerView: View) : ViewHolder(containerView), LayoutContainer {
    fun bind() {
        containerView.my_view
    }
}
first option is the right way. Second is wrong because it kills the purpose of LayoutContainer.