Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.5
-
Fix Version/s: 1.9.1
-
Component/s: Maven Plugin
-
Labels:None
-
Number of attachments :
Description
Collectors embedded in maven plugins usually parse XML files to insert measures in database. Parsing is done with DOM, so xml trees are fully instanciated in memory. It's performant on small files only, but not on projects like :
- 6'000 classes
- a checkstyle file of 50Mo
- a PMD file of 30Mo
- a cobertura file of 20 Mo
- a JavaNCSS file of 7Mo
The solution is to use SAX, for example thanks to XPP3 parser.
First tests on StAX parsing are successful on Emma and PHP plugins. StAX implementation is Codehaus Woodstox.