<@U0VQM95EY> My opinion is that perf matters... in...
# kodein
s
@yousuf.haque My opinion is that perf matters... in critical path. Using
kodein-jxinject
uses a lot of reflexivity, so it's a fact that it is slow. My opinion is that Kotlin provides enough syntactic sugar that Kodein uses to render NOT using this reflexivity a lot less painful. I mean, I don't see
kodein.newInstance { Whatever(instance(), instance(), instance()) }
very much more painful than
kodein.jx.newInstance<Whatever>()
. It's a bit more painful, but a LOT less than it would be in Java, and that, to me, justifies using Kotlin's type inference engine at compile time rather than reflection at runtime.