1461 also get performance hints. |
1461 also get performance hints. |
1462 If you want to build fast, pay attention to those!</p> |
1462 If you want to build fast, pay attention to those!</p> |
1463 |
1463 |
1464 <h4>Building with ccache</h4> |
1464 <h4>Building with ccache</h4> |
1465 |
1465 |
1466 <p>A simple way to radically speed up compilation of native code |
1466 <p>The OpenJDK build supports building with ccache |
1467 (typically hotspot and native libraries in JDK) is to install |
1467 when using gcc or clang. Using ccache can |
1468 ccache. This will cache and reuse prior compilation results, if the |
1468 radically speed up compilation of native code if |
1469 source code is unchanged. However, ccache versions prior to 3.1.4 |
1469 you often rebuild the same sources. Your milage |
1470 does not work correctly with the precompiled headers used in |
1470 may vary however so we recommend evaluating it for |
1471 OpenJDK. So if your platform supports ccache at 3.1.4 or later, we |
1471 yourself. To enable it, make sure it's on the path |
1472 highly recommend installing it. This is currently only supported on |
1472 and configure with <code>--enable-ccache</code>.</p> |
1473 linux.</p> |
|
1474 |
1473 |
1475 <h4>Building on local disk</h4> |
1474 <h4>Building on local disk</h4> |
1476 |
1475 |
1477 <p>If you are using network shares, e.g. via NFS, for your source code, |
1476 <p>If you are using network shares, e.g. via NFS, for your source code, |
1478 make sure the build directory is situated on local disk. |
1477 make sure the build directory is situated on local disk. |