本文介绍了HashMap中的ALT-rt.jar中和rt.jar的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ALT-rt.jar中的HashMap之间的区别是什么和rt.jar中。我想我看到了相当加快在我的应用程序之一,会是什么解释?

What is the difference between HashMap in alt-rt.jarand rt.jar. I think I see a considerable speed upin one of my applications, what would be the explanation?

最好的问候

P.S:我发现了两个不同的* .jar在JDK 1.6.0_25 64位。最终,加快也与ALT-string.jar。这ALT最终可能涉及到一个命令行选项:

P.S.: I found the two different *.jarin JDK 1.6.0_25 64-bit. Eventually thespeed up is also related to alt-string.jar.This alt could eventually be related to acommand line option:

<一个href="http://thevirtualmachinist.blogspot.com/2010/09/xxusecom$p$pssedstrings.html">http://thevirtualmachinist.blogspot.com/2010/09/xxusecom$p$pssedstrings.html

不过,我更感兴趣的是理解ALT-rt.jar中,我不从看上面的文章,有一个命令行选择与它有关。

But I am more interested in understandingalt-rt.jar and I don't see from theabove article that there is a command lineoption related to it.

推荐答案

ALT-rt.jar中仅用于在启用AggressiveOpts JVM选项。确实是从交替 - rt.jar中HashMap中比传统的HashMap更快,但是它的内存消耗高得多由于HashMap中$ FrontCache的使用。

alt-rt.jar is used only when AggressiveOpts JVM option is enabled. Indeed the HashMap from alt-rt.jar is faster than the traditional HashMap, however its memory consumption is much higher due to usage of HashMap$FrontCache.

在生产中使用AggressiveOpts参数时要小心,我们有很多的麻烦与它在内存有限的设置。可能有其他隐藏的陷阱。

Be careful when using AggressiveOpts parameter in production, we had a lot of trouble with it in memory limited setups. There could be other pitfalls hiding.

这篇关于HashMap中的ALT-rt.jar中和rt.jar的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-25 00:40