avaje / avaje-inject

Dependency injection via APT (source code generation) ala "Server-Side Dagger DI"
https://avaje.io/inject
Apache License 2.0
240 stars 24 forks source link

Reduce Service Loader Invocations #559

Closed SentryMan closed 5 months ago

SentryMan commented 6 months ago

Apparently calling the ServiceLoader multiple times slows things a little bit.

I'm thinking we can define a super interface for all four of our spi classes, load them all once, and use instanceof to filter things out.