Re: Java performance question

From: Jonathan Allen (X_at_X.X)
Date: 08/23/04

  • Next message: Thomas Schodt: "Re: Java performance question"
    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
    >


  • Next message: Thomas Schodt: "Re: Java performance question"

    Relevant Pages

    • Re: Static methods overridden !!
      ... In Java overriding /is/ polymorphism. ... First off, as you also know, you can invoke any static method from any ... When it comes right down to it -- i.e. in terms of how the compiler treats ...
      (comp.lang.java.programmer)
    • Re: Cpp Considered Harmful
      ... >> programming language, the compiler, the IDE, the libraries, etc. ... source file, the implementation shall locate the declaration, (and ... to name one of the defining source files on the command line that initiates ... The counterpart to this in Java is accomplished using the following: ...
      (comp.lang.cpp)
    • Re: wie Array für statische Methoden
      ... > auf gar keinen Fall Java empfehlen;) ... Ich hab mal mit virtuellen Methoden auf einem Microkontroller experimentiert und bin zu dem Schluss gekommen: ... > Es ist ja gerade der Vorteil bei Java einen Compiler ... > Dinge zu optimieren, ...
      (de.comp.lang.java)
    • Re: What is the fastest method of parsing scheme?
      ... These issues can be eliminated by the use of custom memory allocators ... Any other ideas why Scheme would be faster than C++ and Java for heap ... For example, in my compiler, the procedure ) ...
      (comp.lang.scheme)
    • Re: A 21st Century Apple II?
      ... Java 6 -Xms64m 24.00s ... Which is actually 9.6% better than the C++ Intel compiler. ... I'm sure in some cases the GNU compiler produces better results. ...
      (comp.sys.apple2)