Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #5853

Re: Eclipse generated hashCode() and Compiler Efficiency

From Roedy Green <see_website@mindprod.com.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Eclipse generated hashCode() and Compiler Efficiency
Date 2011-07-04 08:54 -0700
Organization Canadian Mind Products
Message-ID <vdo3171ne5bj8ace10j8dtopjubji3tsoh@4ax.com> (permalink)
References <8ee12802-2786-472a-815f-94dc14112d7d@c29g2000yqd.googlegroups.com>

Show all headers | View raw


On Mon, 4 Jul 2011 04:07:51 -0700 (PDT), Robert Klemme
<shortcutter@googlemail.com> wrote, quoted or indirectly quoted
someone who said :

>  Is this an optimization they didn't bother to do
>(or left for the JVM) or is there any reason why the local variable
>must be there?  So far I could not find any hints in JLS or JVM spec.

Almost no optimisation is done at the byte code level.  It is all done
later when hotspotting.  Ironically, it is possible that if you get
too clever and optimise the byte code, then later optimisers could
miss standard patterns and hence fail in their optimisations.

-- 
Roedy Green Canadian Mind Products
http://mindprod.com
One of the curses of the computer age is manufacturers now design 
home appliances to die on the very day the warranty expires.
It is deliberate waste in the service of mindless profit.

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Find similar


Thread

Eclipse generated hashCode() and Compiler Efficiency Robert Klemme <shortcutter@googlemail.com> - 2011-07-04 04:07 -0700
  Re: Eclipse generated hashCode() and Compiler Efficiency lewbloch <lewbloch@gmail.com> - 2011-07-04 04:13 -0700
    Re: Eclipse generated hashCode() and Compiler Efficiency jaap <niemand@meel.homelinux.net> - 2011-07-04 17:43 +0200
    Re: Eclipse generated hashCode() and Compiler Efficiency Robert Klemme <shortcutter@googlemail.com> - 2011-07-06 00:20 -0700
  Re: Eclipse generated hashCode() and Compiler Efficiency Roedy Green <see_website@mindprod.com.invalid> - 2011-07-04 08:54 -0700

csiph-web