I cant recall the article, but I recently read abo...
# compose
z
I cant recall the article, but I recently read about how lambdas are grouped in classes in compose (and thats one of the reasons why release builds are so much faster than debug). Does the same thing happen if the lambda is wrapped inside a value class? Example in thread 🧵
Copy code
@JvmInline
value class Sink<in T>(private val callback: (T) -> Unit) {

    infix fun emit(value: T) {
        callback(value)
    }
}