Project Lambda: Java Language Specification draft
Patrick Wright
pdoubleya at gmail.com
Thu Jan 28 02:05:47 PST 2010
> Should javac assist the JVM by moving things outside of the loop? I am
> not sure, I think it would be preferable if the lambda-implementation is
> designed in such a way that the JVM can figure this out with only a few
> inlines. No premature optimizations in the bytecode please.
Just a personal opinion: for server-class machines and VMs, sure, let
the VM optimize this away, but there we also have to keep in mind the
VMs running on desktop and smaller devices which don't have the power,
or are not configured, for all sorts of extra optimizations. I'm a
little worried by the trend in these discussions that because JRockit
or the HotSpot server compiler can optimize the heck out of things, we
no longer have to worry about what sort of code gets generated by our
compilers.
Patrick
More information about the lambda-dev
mailing list