Java – what is the difference between HashMap in alt-rt.jar and rt.jar?

What is the difference between HashMap in alt-rt.jar?

Best wishes

I found two different * Jar in JDK 1.6 0_ 25 64 bit The final acceleration is also related to alt string Jar related This ALT may eventually be associated with a command line option:

http://thevirtualmachinist.blogspot.com/2010/09/xxusecompressedstrings.html

But I'm more interested in understanding ALT - RT. jar, which is related to a command - line option I didn't see in the above article

Solution

Use alt-rt.jar.jar only if the aggressiveopts JVM option is enabled In fact, the HashMap from alt-rt.jar is faster than the traditional HashMap, but its memory consumption is much higher due to the use of HashMap $frontcache

Be careful when using the aggressiveopts parameter in production. We have encountered a lot of trouble in setting with limited memory There may be other traps hidden

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>