简体   繁体   English

将 RSL 与 Adobe AIR 一起使用

[英]Using RSLs with Adobe AIR

Does anyone know how exactly RSLs work with AIR?有谁知道 RSL 究竟是如何与 AIR 一起工作的? I have a terminal server that runs several instances of a very large AIR application, which unfortunately has 100M RAM on startup and 200 after a bit of use.我有一个终端服务器,它运行一个非常大的 AIR 应用程序的多个实例,不幸的是,它在启动时有 100M RAM,在使用一段时间后有 200。 This is obviously not really workable, and I'm thinking that RSLs may be a solution if they're cached on the machine.这显然不是真正可行的,我认为如果 RSL 缓存在机器上,它们可能是一种解决方案。 However I haven't been able to find much of anything on this, and I'd really like to know if anyone has.但是我在这方面找不到太多东西,我真的很想知道是否有人有。

On a second note, what are some good ways to reduce the initial memory size of an AIR applicaiton?其次,有什么好的方法可以减少 AIR 应用程序的初始 memory 大小?

RSLs will only help with download size not RAM usage. RSL 只会帮助下载大小而不是 RAM 使用。 To use less memory I recommend AMF instead of XML as XML parsing has some overhead.为了减少使用 memory 我推荐 AMF 而不是 XML 因为 XML 解析有一些开销。

Hope that helps.希望有帮助。

-James -詹姆士

Try using the profiler that comes with flexbuilder.尝试使用 flexbuilder 附带的分析器。 It will help you see what is eating up the memory and then you can change your code accordingly.它将帮助您查看 memory 的消耗情况,然后您可以相应地更改您的代码。

After a good bit of research, I found that the answer is simply this: Using RSL with Flex gives you the advantage of caching most of the core flex libraries within the browser, thus grossly lowering download speed after that initial one.经过大量研究,我发现答案很简单:将 RSL 与 Flex 结合使用可以让您在浏览器中缓存大多数核心 flex 库,从而大大降低最初的下载速度。 This is not, however, the case for AIR.然而,对于 AIR,情况并非如此。 It does you basically no good.它对你基本上没有好处。

Like james said, it'll help with the DL speed only.就像詹姆斯说的那样,它只会帮助提高 DL 速度。

As far as memory goes... check out articles by Grant Skinner - he's helped me out a lot.就 memory 而言……查看 Grant Skinner 的文章 - 他帮了我很多。 Thanks!谢谢!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM