real time - How to write Java JIT optimization friendly code? -


when want squeeze last bit of performance code, want utilize jit optimization best can. example, marking method final easy method inlining , avoid polymorphism in critical places, etc.

but couldn't find reference or list of options java programmer can use 'hint' jit compiler faster code? shouldn't have list of 'best programming' practice low latency performance jit ?

the best way write jit-friendly code write straight, simple code because jit looks , knows how optimize. no tricks!

also different jvm's have different jit's, in order code works of them must not rely on of them.

the usual way improve jit-performance through external configuration of jvm. jvm's these days know how inline code small method calls directly, performance gains come configuring garbage collector. here effort used in avoiding having stop program while collecting, , can tweak quite bit knowledge of how underlying hardware configured , works better others. not java code, needs straight , simple.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -