evant / kotlin-inject

Dependency injection lib for kotlin
Apache License 2.0
1.28k stars 58 forks source link

Performance vs dagger? #429

Open ursusursus opened 2 months ago

ursusursus commented 2 months ago

I'm evaluating this library for use in our large project (500 modules) & I was wondering is someone has perfkrmance nunbers vs dagger?

Also vs dagger on ksp? I read that its 2x slower than dagger on kapt.

evant commented 2 months ago

Runtime or build performance?

This library does not take the strict stance of 'runtime performance at all costs' that dagger does so I'd suspect I'd be slower, but I have not run benchmarks.

For build performance this library is simpler so I suspect it'd be faster but again not sometime I've tested.

That would be an interesting project and would accept contributions along those lines!

ursusursus commented 2 months ago

I'm looking for build performance, since dagger on ksp is so much slower that it's a blocker

ZacSweers commented 2 months ago

This seems better as a discussion Q&A to ask if anyone has profiled