Are there dependency injection schemes like ButterKnife and Dagger? Make apps slower?

I'm going to start a relatively large project and wondered

What are the real benefits of using these dependency injection infrastructures?

Does DI increase application loading time? Or suggest any performance value?

Googles documentation goes against using Robojuice due to RAM usage, is this something common to all DIs?

Interested in hearing the opinion of everyone.

+6
source share
1 answer

I work at NYTimes, and it takes less than 100 ms to create hundreds of managed objects in two areas with Dagger 2. A dagger helps us organize objects and remove many patterns from actions or business objects. I would recommend it for any size application.

+1
source

Source: https://habr.com/ru/post/981480/


All Articles