|
From: Tatu S. <cow...@ya...> - 2007-03-19 23:47:14
|
--- Rodrigo Cunha <rn...@gm...> wrote:
---------------------------------
You may force pre-compilation using -server I
think. In fact I usuallydo so, and performance
increases even for relatively short and not verycyclic
programs.
---
Actually, not really: -server just reduces compilation
threshold, and that can be done for both -client and
-server set ups. By default thresholds are different
though.
Now, it is possible to set threshold to 0, to really
force pre-compilation, but based on my experiences
(and comments from Sun VM folks as well). But often
that is not a smart thing to do. Much of code is only
run through once (initializations), and there is net
performance loss, due to wasting memory on native code
you are never going to run again.
Perhaps there are other cases where this would help.
Or perhaps it's more due to HotSpot VM then not being
to able to detect real hot spots, and can not do more
aggressive optimizations where needed, having to do
minimum inlining everywhere.
Defining '-server' flag, however, is usually a good
thing to do, compared to default -client (at least
prior to Java6 where it doesn't matter).
-+ Tatu +-
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html
|