I've recently been writing a lot of code in C and am now switching over to Java. I'm currently implementing a large data structure and was wondering whether there were any optimization flags I can turn on when I invoke the Java compiler in order to improve performance like in gcc.
I'm used to:
gcc -O3 -NDEBUG MyProgram.c
is there an analogous command for javac
?
I'm using JDK and am running Ubuntu 10.04.