racc / typesafeconfig-guice

Allows Guice Injection of configuration values from Typesafe Config
Apache License 2.0
72 stars 18 forks source link

Allow for use of fast-classpath-scanner instead of reflections #10

Closed jacospain closed 6 years ago

jacospain commented 6 years ago

Reflections can take up a lot of time at application start up. This pull requests allows users to choose to build a TypesafeConfigModule using either reflections or fast-classpath-scanner.

Where using reflections might take upwards of 10 seconds with a moderately sized classpath, fast-classpath-scanner perform the same work in under a second.

ryantheleach commented 6 years ago

choose

Curious, why allow them a choice?

Is there downsides to using a fast-classpath-scanner?