branaway / Japid

A Java-based statically-typed fast template engine that can be used in any Java code. It has special adapter for use with the Play! Framework.
113 stars 18 forks source link

research how some JVM arguments would help performance #24

Open branaway opened 13 years ago

branaway commented 13 years ago

http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html

some interesting ones:

-XX:+UseCompressedStrings Use a byte[] for Strings which can be represented as pure ASCII. (Introduced in Java 6 Update 21 Performance Release)

-XX:+OptimizeStringConcat Optimize String concatenation operations where possible. (Introduced in Java 6 Update 20)

-XX:+UseStringCache Enables caching of commonly allocated strings.

tunggad commented 13 years ago

oh my god, i love your fanatical devotion to performance! Keep up pls.

But these options are not common to all JVMs, only available on HotSpot right? As JRockit is now free too, i will do some research for JRockit and post it here.

DarkDimius commented 12 years ago

FYI OptimizeStringConcat is bugged and can lead to jvm oops see http://www.lucidimagination.com/blog/2011/07/28/dont-use-java-7-for-anything/

branaway commented 12 years ago

thanks for reminding

2012/5/28 DarkDimius < reply@reply.github.com

FYI OptimizeStringConcat is bugged and can lead to jvm oops see http://www.lucidimagination.com/blog/2011/07/28/dont-use-java-7-for-anything/


Reply to this email directly or view it on GitHub: https://github.com/branaway/Japid/issues/24#issuecomment-5960610