playframework/Play20 — pull request #525 by jroper (2012-11-08 23:04:53+00:00)
Title: Added reflections cache for fast ebean test startup

Added a cache for reflections that is used during tests. In a sample project of 500 tests that ran queries on an in memory database using ebean, test time was improved from 180s to 19s.

One thing to check here, there is now one reflections configuration, with both a TypeScanner and a TypeAnnotationsScanner. This typically shouldn't have a serious impact on performance, since by the time the scanners are used, the only classes being scanned are the classes in the models package.