Why are builds under IDE slower than outside builds?

View: New views
7 Messages — Rating Filter:   Alert me  

Why are builds under IDE slower than outside builds?

by Ivan Soleimanipour-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I build my project in the IDE, it takes 1:35.
When I build it from the shell it takes 41 seconds.

These are both clean builds.

According to my perfbar it seems that when building under the IDE I'm utilizing only one cpu
while when building from the shell I'm utilizing both of my machines cpu's.



Re: Why are builds under IDE slower than outside builds?

by deepak marathe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi
does your project contain GUI(Forms) built by IDE?

regards
marathe

On 10/18/09, Ivan Soleimanipour <Ivan.Soleimanipour@...> wrote:

> When I build my project in the IDE, it takes 1:35.
> When I build it from the shell it takes 41 seconds.
>
> These are both clean builds.
>
> According to my perfbar it seems that when building under the IDE I'm
> utilizing only one cpu
> while when building from the shell I'm utilizing both of my machines cpu's.
>
>
>

Re: Why are builds under IDE slower than outside builds?

by Ivan Soleimanipour-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/18/09 13:09, deepak marathe wrote:
> hi
> does your project contain GUI(Forms) built by IDE?
>

No.
Why would it make a difference? It's all the same ant files being used.


Re: Why are builds under IDE slower than outside builds?

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ivan Soleimanipour wrote:
> According to my perfbar it seems that when building under the IDE I'm
> utilizing only one cpu
> while when building from the shell I'm utilizing both of my machines cpu's.

Don't know offhand. Could have to do with maximum heap settings etc.


Re: Re: Why are builds under IDE slower than outside builds?

by Ivan Soleimanipour-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 10/20/09 09:30, Jesse Glick wrote:
> Ivan Soleimanipour wrote:
>> According to my perfbar it seems that when building under the IDE I'm
>> utilizing only one cpu
>> while when building from the shell I'm utilizing both of my machines
>> cpu's.
>
> Don't know offhand. Could have to do with maximum heap settings etc.
>

Heap setting of IDE or external builds?
The builds _are_ external right?

Also, is javac parallelized? could that be turned off impeded under the IDE?
I'm asking because I see much more effective 2-cpu utilization when building
outside of the IDE.


Re: Why are builds under IDE slower than outside builds?

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ivan Soleimanipour wrote:
> Heap setting of IDE or external builds?

Well, of IDE if you are building from the IDE, else of the JVM if you are running a build from the command line.

> is javac parallelized?

No.


Re: Re: Why are builds under IDE slower than outside builds?

by Ivan Soleimanipour-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ahhh, -xMx1G and it goes from ~2 t0 < 1 minutes