为什么MinGW很慢? [英] Why is MinGW very slow?

查看:2153
本文介绍了为什么MinGW很慢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用Gcc / minGW的Code :: Blocks IDE,我试图构建一个wxWidgets应用程序。 20k线和40个源模块。它建立非常非常缓慢。
编译cpp模块持续2-5秒,链接持续甚至2-3分钟。



这是一个可移植代码,这个代码在Linux上编译速度非常快。我不能按照构建消息窗口...整个过程持续不到20秒。



我尝试了常见的调整(例如,预编译头,关闭优化



有什么想法吗?

您是否在Active Directory网域,但是没有立即连接到它?



>虽然我没有答案为什么MinGW会很慢,我的经验是,属于AD域,但无法到达AD控制器的计算机有一个延迟启动可执行文件作为rxvt.exe),并且当前正在运行的用户遇到暂停或停顿(例如使用MinGW构建的emacs)。



我仍在调查中确定实际<强>导致这种行为,但我认为我会提及它,以防它适用于你。


I'm using Code::Blocks IDE with Gcc/minGW on Windows and I'm trying to build a wxWidgets application which has ca. 20k lines and 40 source modules. And it builds very very slow. Compiling a cpp module lasts 2-5 seconds, and linking lasts even 2-3 minutes.

It's a portable code, this code on Linux compiles very fast. I can't follow the build message window... The entire process lasts less than 20 seconds.

I tried the common tweaks (eg. precompiled header, turn optimalizations off, etc) but nothing worked.

Why is it so slow?

Any ideas?

解决方案

Are you on an Active Directory domain, but not immediately connected to it?

While I don't have the "answer" as to why MinGW would be slow, it has been my experience that computers which belong to an AD domain, but are unable to reach the AD controller, have a delay in starting executables (such as rxvt.exe) and currently running ones experience a pause or stutter (such as emacs, which is built using MinGW).

I am still investigating to determine the actual cause of this behavior, but thought I would mention it in case it applies to you.

这篇关于为什么MinGW很慢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆