Hey, Does koin instantly create allocations in hea...
# koin
f
Hey, Does koin instantly create allocations in heap, when we define definitions like single or its created when we call inject() in composable or inject() in a class?
Copy code
ex: startKoin{
    module{
       singe { ClassA(get()) }
    }

}
s
All instances are created lazily at the moment on injection
However definitions (aka instance factories) are created instantly
f
so if there are lot of modules then cold start-up time can increase right ?
đŸ’¯ 1
s
That’s right