在Java Plug-In applet选项中,jar“预加载”有什么作用?

时间:2021-04-18 17:18:28

I'm investigating options for speeding up the initial load time of our applets. Looking at the Java Plugin Developer Guide, i see an applet parameter option called cache_archive_ex which references pre-loading.

我正在研究加快applet初始加载时间的选项。查看Java插件开发人员指南,我看到一个名为cache_archive_ex的applet参数选项,它引用了预加载。

What's that? I can't find any documentation on what that means exactly anywhere.

那是什么?我找不到任何关于这意味着什么的文件。

And a deeper question, which noone need answer - why doesn't sun's documentation explain what it means?

还有一个更深层次的问题,没有人需要回答 - 为什么sun的文档没有解释它的含义?

1 个解决方案

#1


What is meant by preloading is the following procedure: The library is loaded into a JVM and then its binary memory representation after verifying that everything is ok, the memory region containing it is dumped. This allows faster loading of the library. The JVM can simply map the file contents directly into the memory without loading the classes from the library.

预加载的意思是以下过程:在验证一切正常后,将库加载到JVM中,然后加载其二进制内存表示,转储包含它的内存区域。这样可以更快地加载库。 JVM可以简单地将文件内容直接映射到内存中,而无需从库中加载类。

EDIT:

This link might also be interesting: http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

这个链接也可能很有趣:http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

It is a different mechanism than the the one that I described, but perhaps it answers your question.

它与我描述的机制不同,但也许它可以回答你的问题。

#1


What is meant by preloading is the following procedure: The library is loaded into a JVM and then its binary memory representation after verifying that everything is ok, the memory region containing it is dumped. This allows faster loading of the library. The JVM can simply map the file contents directly into the memory without loading the classes from the library.

预加载的意思是以下过程:在验证一切正常后,将库加载到JVM中,然后加载其二进制内存表示,转储包含它的内存区域。这样可以更快地加载库。 JVM可以简单地将文件内容直接映射到内存中,而无需从库中加载类。

EDIT:

This link might also be interesting: http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

这个链接也可能很有趣:http://java.sun.com/products/plugin/1.3/docs/appletcaching.html

It is a different mechanism than the the one that I described, but perhaps it answers your question.

它与我描述的机制不同,但也许它可以回答你的问题。