gradle/gradle — pull request #370 by victorbr (2014-12-15 15:37:29+00:00)
Title: Create the static builder in ModuleVersionSelectorParsers only once

... instead of doing the costly reflection every time
The builder is stateless so there should be no problem to create only one instance of it. The main performance problem is in the creation of `MapParser` which does a reflection on itself (in `MapNotationParser` constructor) detecting annotations on parameters of `parseMap`. In our project (~250 modules with dependencies) this method is called almost 43,000 times making the total overhead substantial.