Re: crushing java
From: Lloyd Dupont (ld_at_NewsAccount.galador.net)
Date: 06/17/04
- Next message: Ram Baruch: "setting the class of the window"
- Previous message: Doug: "Re: C# 2.0 Status"
- In reply to: Lloyd Dupont: "crushing java"
- Next in thread: Jon Skeet [C# MVP]: "Re: crushing java"
- Reply: Jon Skeet [C# MVP]: "Re: crushing java"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 20:10:13 +1000
of course the compiler don't just remove a call.
it's incorrect to remove a function call !
at most does it inline it.
your reaction just proved you to be sentimental and self blinded
anyway, this proof can be canceled by another similar test:
using System;
public class ExceptPerf
{
public static void Main(string[] args)
{
int N = int.Parse(args[0]);
long t0 = Environment.TickCount;
for(int i=0; i< N; i++)
try{
throw new Exception();
}catch( Exception e )
{
;
}
Console.WriteLine((Environment.TickCount-t0));
}
}
public class ExceptPerf
{
public static void main(String[] args)
{
int N = Integer.parseInt(args[0]);
long t0 = System.currentTimeMillis();
for(int i=0; i< N; i++)
try{
throw new Exception();
}catch( Exception e )
{
;
}
System.out.println((System.currentTimeMillis()-t0));
}
}
- Next message: Ram Baruch: "setting the class of the window"
- Previous message: Doug: "Re: C# 2.0 Status"
- In reply to: Lloyd Dupont: "crushing java"
- Next in thread: Jon Skeet [C# MVP]: "Re: crushing java"
- Reply: Jon Skeet [C# MVP]: "Re: crushing java"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|