A program runs extremely slow under Eclipse [message #243317] |
Mon, 17 December 2007 10:02 |
Eclipse User |
|
|
|
Originally posted by: sarmadysREM.REMgmail.com
Hello
I have written a small simulation software (mostly random numbers and
ArrayLists). I am doing 50,000 times loop on the program.
On eclipse it takes (350 seconds) which is not acceptable. I worked a
full day on the code and I do not find something special.
Today I was going to take a shot on Netbeans. I copied the code to
Netbeans and run it. I was shocked when I saw it is being run in just
(0.7 seconds).
I am using JDK6 on both IDEs. I guess it is because of JVM settings or
something.
Could people please tell me their guess on what things could cause such
a huge difference (almost 500 times slower runtime)?
(By the way I need to move back to eclipse because unfortunately I find
NB6.0 too buggy. A simple package name refactor broke my entire code and
it took me 30 minutes to fix things manually)
Regards,
Mac
|
|
|
|
Re: A program runs extremely slow under Eclipse [message #243338 is a reply to message #243322] |
Mon, 17 December 2007 13:01 |
Eclipse User |
|
|
|
Originally posted by: sarmadysREM.REMgmail.com
Daniel, Thank you for your help. I sent you the code.
I am not sure what is up here. I first tried the code on command line
and it was unbelievably slow (more than 700 seconds)
Then I restarted the eclipse and every other java program and now the
same unchanged code runs in eclipse as fast as the other instance on
netbeans (in 0.7 seconds)
It seems JVM messes up in some way. Is it?
Thank you again for your time and help.
Regards,
Mac
Daniel Megert wrote:
> Siamak Sarmady wrote:
>
>> Hello
>>
>> I have written a small simulation software (mostly random numbers and
>> ArrayLists). I am doing 50,000 times loop on the program.
>>
>> On eclipse it takes (350 seconds) which is not acceptable. I worked a
>> full day on the code and I do not find something special.
>>
>> Today I was going to take a shot on Netbeans. I copied the code to
>> Netbeans and run it. I was shocked when I saw it is being run in just
>> (0.7 seconds).
>>
>> I am using JDK6 on both IDEs. I guess it is because of JVM settings or
>> something.
>>
>> Could people please tell me their guess on what things could cause
>> such a huge difference (almost 500 times slower runtime)?
>
> Did you eventually output stuff to the console? Could you attach the
> code here?
>
> Dani
>
>>
>> (By the way I need to move back to eclipse because unfortunately I
>> find NB6.0 too buggy. A simple package name refactor broke my entire
>> code and it took me 30 minutes to fix things manually)
>>
>> Regards,
>> Mac
|
|
|
|
Powered by
FUDForum. Page generated in 0.08119 seconds