8173393: Module system implementation refresh (2/2017)
Alan.Bateman at oracle.com
Wed Feb 8 15:04:05 UTC 2017
On 08/02/2017 14:49, Claes Redestad wrote:
> From a startup perspective all alternatives are more or less equal
> here, and generally speaking a lambda and a method reference are equal
> as long as they're both non-capturing.
> A detail I had missed here, though, is that the createModuleReader
> method could be made static to ensure the lambda is actually
> non-capturing (otherwise it'll unnecessarily allocate an object
> preserving this).
Yes, good point, this can of course be static.
More information about the compiler-dev