jlgrock / ClosureJavascriptFramework

A group of plug-ins that can be used in conjunction with maven to execute the Google Closure Compiler on JavaScript code. This Framework allows for scaling and modularity.
MIT License
16 stars 7 forks source link

Run Metrics on Compile #12

Open jlgrock opened 12 years ago

jlgrock commented 12 years ago

Need to determine what is taking the longest amount of time to see if it can be sped up. For our larger projects, on a Windows environment, this can take up to 10 minutes to run. In Linux/Mac, this tends to take ~2 min.

jlgrock commented 12 years ago

I have now run metrics. It seems that the majority of the time is experiences during the parsing of test results. I sped it up by stopping after 5 bugs (by default - this can be overridden). However, this has not significantly gained in performance (<5%). However, I was able to localize this. It is in the "parseFiles" method of the ClosureTestingMojo.java. When it calls the ParseRunner, it takes forever. Based on MAT and VirtualVM, this is not due to memory or CPU issues though.

Suggestions: This may need to be multithreaded or I/O performance checked (though I am using a Retina mac currently, so I/O should never be a problem - but that's an assumption, not a fact).