Re: Java performance question
From: Jonathan Allen (X_at_X.X)
Date: 08/23/04
- Previous message: Paul Lutus: "Re: Java performance question"
- In reply to: Paul Lutus: "Re: Java performance question"
- Next in thread: Thomas Schodt: "Re: Java performance question"
- Reply: Thomas Schodt: "Re: Java performance question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 23 Aug 2004 21:37:02 GMT
> Why not do an experiment?
I want to know the actual answer. Doing a experiment will tell me if it is
faster, but not why.
> Especially since you don't provide any information
> about your Java version.
Version 1.4.2_02.
> You can always examine the compiler output to see whether the compiler did
> what you hoped.
How could I do that? Since Java compiles the classes one at a time, the
inlining would have to occur at run time.
Jonathan Allen
"Paul Lutus" <nospam@nosite.zzz> wrote in message
news:10ikmqs39tpq1c9@corp.supernews.com...
> Jonathan Allen wrote:
>
> > I have a very small static method that gets called a lot. Do I have to
> > mark it as "static final", or is just "static" enough to have the JRE
> > inline the method?
>
> Why not do an experiment? Especially since you don't provide any
information
> about your Java version.
>
> You can always examine the compiler output to see whether the compiler did
> what you hoped.
>
> --
> Paul Lutus
> http://www.arachnoid.com
>
- Previous message: Paul Lutus: "Re: Java performance question"
- In reply to: Paul Lutus: "Re: Java performance question"
- Next in thread: Thomas Schodt: "Re: Java performance question"
- Reply: Thomas Schodt: "Re: Java performance question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|