kohesive / injekt

Dependency Injection for Kotlin
MIT License
235 stars 19 forks source link

Per thread injection should use ThreadLocal storage, or depending on the Registry implementation allow that #2

Closed apatrida closed 9 years ago

apatrida commented 9 years ago

Currently per thread instantiated instances are pulled from the concurrent maps with the default registry. They could be stored on ThreadLocal storage as an optimization.

This also COULD be a memory leak if new threads are created all the time and discarded, the current registry would not expire any.

apatrida commented 9 years ago

now in 1.3.0