使用命令行\Common7 \IDE \devenv.exe构建x64应用程序所需的时间比x32长 [英] Building x64 apps with command line \Common7\IDE\devenv.exe taking longer time than x32

查看:104
本文介绍了使用命令行\Common7 \IDE \devenv.exe构建x64应用程序所需的时间比x32长的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

命令行工具  \ Common7 \IDE \ devvenv.exe需要很长时间时间构建x64位应用程序。但是,如果我们为x32构建相同的应用程序,它的构建速度非常快。 

Command line tool \Common7\IDE\devenv.exe taking very long time to build x64 bit applications. However, if we build same application for x32, its building very fast. 

任何想法如何使x64位应用程序快速构建?

Any idea what to do so that x64 bit applications build fast?

推荐答案

嗨朋友,

感谢您在此发帖。

>>> ; 使用命令行\Common7 \IDE \ devvenv.exe构建x64应用程序需要比x32更长的时间

>>>Building x64 apps with command line \Common7\IDE\devenv.exe taking longer time than x32

代码是从IL代码编译到目标机器上的机器代码。对于32位,开发人员认为这将是一个桌面交互式应用程序并编写了一个JITter(即时编译器
编译优化启动时间,牺牲一些运行时优势。对于64位应用程序,开发人员认为这是非交互式服务器应用程序。因此,JITter将针对运行时性能进行编译优化,从而牺牲启动速度。

Code is compiled from IL code to machine code on the target machine. For 32bit, developers assumed that this would be a desktop interactive application and wrote a JITter (Just-In-Time compiler) that compiles for optimized startup time, sacrificing some runtime benefits. For 64bit applications, developers assumed this to be non-interactive server applications. So the JITter will compile optimizing for runtime performance, sacrificing startup speed.

此外,不需要大内存空间的64位应用程序往往运行速度较慢。其背后的原因之一是你必须移动移动数据。如果您不能使用> 2GB内存空间(例如用于缓存),则x64位应用程序
构建更慢。

Besides, 64Bit applications that do not require large memory space tend to work slower. One of the reasons behind it is that you have to move move data around. If you can not utilize >2GB memory space (for caching for example), the x64 bit applications build more slow.

>>> 有什么想法让x64位应用程序快速构建?

>>>Any idea what to do so that x64 bit applications build fast?

首先,你应该使用优化。比较没有优化的代码性能是毫无意义的。如果您关心性能,那么您将只使用优化代码。

First, you should use optimizations. Comparing performance of code without optimisations is rather pointless. If you care about performance, you'll only ever use optimised code.

其次,访问更多内存并执行64位寄存器操作。

Second, Access much more memory and perform 64-bit register operations.

如果以上答案对您没有帮助,请问您能不能与我们分享更多信息,例如我们,t 系统和RAM中的位数,
< span id ="x_x_x_x_result_box"lang ="en"> 您的应用程序类型,WPF或其他类型。

If above answer not help you, could you please share us more info, such us, the number of bits in your system and the RAM, the type of your application, WPF or others.

更新:Scott Hanselman刚刚发布了一个很好的
概述

Update: Scott Hanselman just posted a good overview of this topic as well.

希望这可以帮到你。

Hope this can help you.


这篇关于使用命令行\Common7 \IDE \devenv.exe构建x64应用程序所需的时间比x32长的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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