ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaha_5.4.0.1/tranperf.htm

61 lines
4.1 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Java static compilation performance considerations" />
<meta name="abstract" content="You can determine the speed of transformation by the optimization level that you set." />
<meta name="description" content="You can determine the speed of transformation by the optimization level that you set." />
<meta name="DC.Relation" scheme="URI" content="transfor.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="tranperf" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Java static compilation performance considerations</title>
</head>
<body id="tranperf"><a name="tranperf"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Java static compilation performance considerations</h1>
<div><p>You can determine the speed of transformation by the optimization
level that you set.</p>
<p>Optimization level 10 transforms the fastest, but the resulting program
is generally slower than one set at a higher optimization level. Optimization
level 40 takes longer to transform, but is likely to run faster.</p>
<p>A small number of Java™ programs may not optimize to level
40. Thus, a few programs that do not run at level 40, may run at level 30
instead. You can run programs that do not run at optimization level 40 by
using licensed internal code optimization <a href="../rbam6/rbam6licopt.htm" target="_blank">LICOPT parameter strings</a>. However, performance at
level 30 may be sufficient for your program.</p>
<p>If you are having problems running Java code that seemed to work on another Java virtual
machine, try using optimization level 30 instead of level 40. If this works,
and your performance is acceptable, you do not need to do anything else. If
you need better performance, see <a href="../rbam6/rbam6licopt.htm" target="_blank">LICOPT parameter strings</a> for information on how to
enable and disable various forms of optimization. For example, you could first
try creating the program using OPTIMIZE(40) LICOPT(NoPreresolveExtRef). If
your application contains dead calls to classes that are not available, this
LICOPT value allows your program to run without problems.</p>
<p>To determine what level of optimization your Java programs were created at, you can use
the <a href="../cl/dspjvapgm.htm" target="_blank">Display Java Program
(DSPJVAPGM)</a> command. To change the optimization level of your Java program,
use the <a href="../cl/crtjvapgm.htm" target="_blank">Create Java Program
(CRTJVAPGM)</a> command.</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="transfor.htm" title="The Java transformer is an IBM i5/OS component that preprocesses class files to prepare them to run using the iSeries Java virtual machine. The Java transformer creates an optimized program object that is persistent and is associated with the class file.">Static compilation</a></div>
</div>
</div>
</body>
</html>