Search:

Type: Posts; User: Cornix

Search: Search took 0.14 seconds.

  1. Replies
    4
    Views
    1,238

    [SOLVED] Re: What will the compiler remove from the code?

    Okay, thank you very much.
    I have, however, found several programs which optimize the byte-code after compilation and claim to fix problems like these.
  2. Replies
    4
    Views
    1,238

    [SOLVED] Re: What will the compiler remove from the code?

    I was just thinking that, since DEBUG is a final variable and set to false, the compile might realize that the entire if-block can be removed.
    And then, since the method "debug(...)" doesnt contain...
  3. Replies
    4
    Views
    1,238

    [SOLVED] What will the compiler remove from the code?

    Hi there.

    Edit: I googled some more and found out, that the java compiler does almost no optimization at all.
    Java relies on the JIT to do all kinds of optimization.
    But there are 3rd party...
Results 1 to 3 of 3