Issue Details (XML | Word | Printable)

Key: MPXDOC-120
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Matthias Kerkhoff
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1.x XDoc Plugin

Faster execution of xdoc:jelly-transform with ant:parallel

Created: 14/Sep/04 06:07 AM   Updated: 22/Aug/05 06:41 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified


 Description  « Hide

In larger projects or in multiproject builds transforming the xdoc files into html may take a significant amount of time.
After looking into the plugin.jelly - especially into the definition of the doc:performJsl tag - I would think that there is an opportunity to distribute the transformation workload over multiple threads/cpus.
The best candidate for doing so would be the for-each loop over docFiles (lines 328-367). It should possible to reduce the overall transformation time with the ant:parallel task.
The effect should be noticeable on multiprocessor build machines and/or builds which transform many xdoc files, as they may for example occur in conjunction with the statcvs-plugin.



dion gillard added a comment - 14/Sep/04 08:09 PM

Rather than Ant's parallel task, why not use Jelly's thread tag?


Arnaud Heritier added a comment - 15/Sep/04 01:46 AM

It seems a good idea but what is the difference between ant:parallel and jelly:thread ?


Matthias Kerkhoff added a comment - 15/Sep/04 03:04 AM

I suggested ant:parallel because its threadsPerProcessor attribute. I'm not sure how to model a similar behaviour with the jelly:threads taglib.