Showing posts with label multithreading. Show all posts
Showing posts with label multithreading. Show all posts

Jul 19, 2012

Maven parallel build

Hi All,

I have looked for a while for this option, wondered how could it be that they don't have it.

Finally i found it, since maven 3v, they add an experimental option, the T option.

You can now run maven build parallel way. Meaning, maven will check which parts from the project tree he can build in parallel and do it.

Performance ?

Big boost, something like >20%, Do it for your self and compare, you want regret it.

Good also for CI (Jenkins for example)

How?

First way,
"mvn -T 4 clean install"

-T   => Stands for telling maven to use the parallel way.

4    => Means, 4 threads to use.

Second way and my preferred,
"mvn -T 4C clean install"

-T   => Stands for telling maven to use the parallel way.

4C  => Means, 4 threads on each core


Dor

Nov 23, 2010

gwt compile speed

Hi,
Wondered if there is a solution for gwt permutation compile time, some way to speed it up, because 12 permutation compilation takes time, So there is one,
by adding the following option inside the compiler arguments:
"-localWorkers 2"
The "2" is the number of cores you got on the compiling computer and can be changed.
Hoped i helped,
Dor