At 03:13  27/1/01 +0100, Paulo Gaspar wrote:
>Bruce Eckel on his book "Thinking in Java" states that a simple method call
>(no parameters) takes 5.9 units of time while a synchronized method call
>takes
>570. OTOH, object creation takes 980 which makes it an even worse
>alternative.

Depends on the JVM - later JVMs from sun actually deal better with creation
of small short-lived objects. 
Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to