为什么eclipse的flexbuilder插件打开和编译这么慢?

发布于 2024-07-19 16:43:54 字数 379 浏览 4 评论 0原文

我有一台像样的电脑。 (名称中带有双核和大量内存的东西)。 有时,仅当我打开一个简单的 mxml 文件时,FlexBuilder 才会提示“构建器项目”加载栏。 看起来他做了一些困难的工作......我不要求任何花哨的东西。 我只想以文本模式打开文件。 每次我按下 ctrl+s,我都会担心“建设项目需要永远”的事情。 我已经禁用了自动构建,但是不方便。

还有一点,比较好理解。 我有一个 Ant 任务,它使用 flexBuilderSdk 编译我们的代码。 这需要很长时间(例如 100 个 .as 文件和 20 个 .mxml 文件需要 2 分钟)。

对于两个问题:这正常吗? 我可以做点什么吗? 因为它正在扼杀我的生产力! (不,说真的;-))

I've got a decent computer. ( something with dual-core in the name and a lot of ram ).
Sometime FlexBuilder prompt the "builder project" loading bar only when i open a simple mxml file.
It's look like he does some difficult jobs... i don't ask for anything fancy. I just want the file open, in text mode.
Every time i hit ctrl+s, i fear the "building project who take forever" thing. I've disable the automatic build, but it's not convenient.

Another thing, more understandable. I'v got a Ant task who compile our code with the flexBuilderSdk. It's take forever ( like 2 min for 100 .as file and 20 .mxml file ).

For the two question : Is that normal ? Can i do something ? Because it's killing my productivity ! ( no, seriously ;-) )

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

彡翼 2024-07-26 16:43:54

Flex 编译器的性能众所周知非常慢。 他们正在努力提高 Flex 4 的编译器性能。请参阅此处的开发人员说明:

http://opensource.adobe.com/wiki/display/flexsdk/Notes+on+Compiler+Performance+Improvements

编译 Flex 应用程序分为两步。 首先,MXML 文件被编译成等效的 ActionScript 类。 如果添加“-keep”编译器参数,您将能够在名为“generate”的文件夹中看到所有这些文件。 创建 AS3 类后,AS 编译器将它们转换为 .SWF 文件形式的字节码。

如果您的硬盘速度较慢(例如 5400 RPM 笔记本电脑驱动器),也会影响编译性能。 我绝对建议禁用“自动构建”,然后在需要构建时按 CTRL-B 即可。 当您想要构建时,做到这一点并不难,比每次更改文件时等待编译要好得多。

Flex compiler performance is known to be pretty slow. They are making an effort to improve compiler performance for Flex 4. See the developer notes here:

http://opensource.adobe.com/wiki/display/flexsdk/Notes+on+Compiler+Performance+Improvements

Compiling a Flex application is a 2-step process. First, the MXML files are compiled into the equivalent ActionScript classes. If you add the "-keep" compiler parameter, you'll be able to see all these files in a folder called "generated." After the AS3 classes are created, then the AS compiler turns these into bytecode in the form of a .SWF file.

If you have a slow hard disk (say a 5400 RPM laptop drive) that will also affect the performance of compilation. I would definitely recommend disabling "Build Automatically" and just press CTRL-B when you want to build. It's not very difficult to do that when you want to build, much better than waiting for a compile every time you change a file.

扛起拖把扫天下 2024-07-26 16:43:54

上述改进也已由 Brian Deitte 向后移植到 Flex 3 SDK。 您可以在他的博客上尝试一下。 速度要快得多。

The above mentioned improvements have also been backported to the Flex 3 SDK by Brian Deitte. You can try this out at his blog. It is way faster.

缱绻入梦 2024-07-26 16:43:54

您可以使用 Flex Builder 配置进行一些调整,

更多内容请参见此处:
链接

There are some tweaks you can do with the Flex Builder Configuration

More here:
Link

夜吻♂芭芘 2024-07-26 16:43:54

使用 [如何减少 Eclipse Ganymede 的内存使用? 中的设置并阅读文章卡尔德拉斯发送。

Use the settings in [How can I reduce Eclipse Ganymede's memory use? and read the article calderas sent.

长途伴 2024-07-26 16:43:54

anirudhsasikumar 强调一点:Flex4 SDK 的改进已向后移植。
http://www.deitte.com/archives/ 2008/10/a%5Ffaster%5Fflex%5F3.htm
它有点快,但我在使用 Firefox 时遇到了一些问题。 (别问为什么!)
问题:结果 SWF 在 IE7 上工作,但在 Firefox 上不起作用(加载时无限制等待),

但构建的真正改进是使用 FCSH,以避免两次编译同一文件。 它极大地提高了性能。

http://wildwinter.blogspot.com/2008/04/ fcsh-wrapper-for-ant.html

anirudhsasikumar mark a point : Improvement of the Flex4 SDK have been backported.
http://www.deitte.com/archives/2008/10/a%5Ffaster%5Fflex%5F3.htm
It's a little bit faster, but i encounter some problem with firefox then. ( Dont ask why ! )
The issue : The result SWF work on IE7, but not on Firefox ( unlimited waiting at the loading )

But a real improvement of the building is to use FCSH, to avoid compile the same file two time. It's improve the performance drasticly.

http://wildwinter.blogspot.com/2008/04/fcsh-wrapper-for-ant.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文