在具有多个模块的应用程序中使用运行时共享库 (Flex)
我有一个包含多个模块的应用程序。如果没有 RSL,它们可以正常工作,唯一的问题是速度变慢,从而导致时间性能损失。 RSL 的尺寸减小了,性能也提高了,但某些模块无法加载。对此有什么想法吗?我们不能在具有多个模块的应用程序中使用 RSL 吗?
在这方面的任何帮助将不胜感激。
提前致谢。
I have an application with several modules. Without RSL's they are working fine, only issue being it becomes slow and thus loss in terms of time performance. With RSL's size gets reduced and also the performance improves but some modules don't get loaded. Any idea over this ? Can't we use RSL in an application with multiple modules ?
Any help in this regard would be greatlt appreciated.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用或不使用 RSL 不应影响性能。可能只是某些模块在没有 RSL 提高性能的情况下无法工作。
也就是说,起诉 RSL 是一个很好的做法。确保在调用它们包含的定义之前加载所有 RSL(即使用预加载策略或仅将所有 RSL 定义包含在“主”SWF 中)。
如果在 RSL 尚未加载时尝试从模块内检索 RSL 定义,则会停止脚本。现在的情况大概就是这样吧……
Using or not using RSL shouldn't affect performance. Probably it's just that some modules won't work without RSL increasing that way the performance.
That said, suing RSL is a good practice. Make sure all the RSL are loaded before the definitions they include are invoked (i.e use a preload strategy or just include all the RSL definitions in the "main" SWF).
If an attempt of retrieving RSL definition from within a module is made while the RSL is not loaded yet it will stop the script. That's probably what's happening now...