Closed pedrofsn closed 3 months ago
Chart generated with macrobenchmark library, with Koin consuming a lot.
We did a POC moving our koin to the background, using lazyLoadModules. And it is charming, but don't solve the problem with flatten function.
Thank you @guilhermemagro for providing this analysis and collecting the charts!
there is a first proposal with #1801 - let's try to benchmark results
see #1801
I was analyzing an app initialization and I saw Koin consuming a lot of time in flatten function. This logic could be improved?
Flatten function:
I was thinking in process this in IO instead of Main thread. In this case Koin will need to open this to the client pass the flattened list.
Another idea is try to figure out if it possible to apply other algorithm to reduce the time-space complexity.