Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: plexus-compiler-1.8.2
-
Fix Version/s: plexus-compiler-1.8.6
-
Component/s: plexus-compiler
-
Labels:None
-
Environment:Plexus trunk
-
Number of attachments :
Description
In the current version of org.codehaus.plexus.compiler.javac.JavacCompiler, for each compilation task a new classloader is being created to load JavaC.
This slows down the build process.
With the attached patch JavacCompiler will cache the classloader. For me this reduces the build time to 1/3 when compiling multiple projects.
Activity
Jörg Waßmer
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Attachment | PLXCOMP-202.patch [ 59037 ] |
Olivier Lamy
made changes -
| Assignee | Olivier Lamy [ olamy ] |
Olivier Lamy
made changes -
| Status | Open [ 1 ] | Closed [ 6 ] |
| Fix Version/s | plexus-compiler-1.8.6 [ 18340 ] | |
| Resolution | Fixed [ 1 ] |
This also solves "OutOfPermSpace" problems when running huge builds via the Maven reactor.