# koin-contributors

Pedro Alberto

02/23/2024, 10:12 AM
I was analyzing an app initialization and I saw Koin consuming a lot of time in flatten function. Exists some way to avoid/bypass this process? I'm thinking in two possibilities: 1 - start to use koin in background as documentation suggests. Is it stable, I'm not sure?. 2 - process this in IO (in app) and pass a set of flatten modules to koin. Probably depends of some customization in a Koin fork. Thread in Slack Conversation
@Marcello Galhardo @arnaud.giuliani @Pedro Francisco de Sousa Neto just to continue the discussion here if needed.
👍 2

Pedro Francisco de Sousa Neto

02/25/2024, 12:29 AM
Thank you to move the post, @Pedro Alberto! I've opened a issue about it.

Marcello Galhardo

02/25/2024, 1:22 PM
@Pedro Francisco de Sousa Neto do you have any measurements? How many modules are you trying to load, and how slow was it? If possible, please also collect the memory usage. You can use the Android Studio Profiler for that:

Pedro Francisco de Sousa Neto

02/25/2024, 2:33 PM
Yeah, we've. Of course, we can't share some details because it's not an open-source app. However, I updated the issue with some flame charts. 🙂