hi there we are coming across `slow cold start` an...
# koin
s
hi there we are coming across
slow cold start
and anr issues due to koin initialisation on one of your project wherein we have 20modules out of which around 10 are in kmp, so when tries to initialise this 10 Kmp modules using koin, it takes around ~7sec to init and move to further screens. This modules are initialised within Application class. We already made all this koin init async still the issue persisting around. Is there work around this?? to make it initialise quicker/ondemand when we init this 10kmp module on demand during runtime we are seeing
no koin def found issues
in hilt we didn't come across this issues.
a
in hilt you don't have KMP sharing. Sounds weird that 20 modules are so slow
s
while building android app itself it resulting ANR's due to koin init
a
that mean that you block your main thread with constructor stuff. You can plug kotzilla.io on top of Koin to scan all your architecture and DI data. It would help you look at what is slow
did you tried it?
s
I have to initialise evrything than I have to move to homescreen
So that's the reason we ended up blocking
a
regarding Koin initialization or kotzilla one ?
s
koin init