.NET 2.0或更高版本的程序在运行时使用的内存少于同样的.NET 1.1编译程序 [英] Is .NET 2.0 or later programmes use less memory in runtime than same .NET 1.1 compiled programe

查看:32
本文介绍了.NET 2.0或更高版本的程序在运行时使用的内存少于同样的.NET 1.1编译程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了如下先进的POS系统



前端使用VS2003 .NET 1.1

后台使用VS2008 .NET 3.5



我的问题是我的.NET 1.1编译前端在运行时使用的内存多于在.NET2.0中编译的同一前端



Windows任务管理器显示.NET 1.1 exe使用50,000k - 70,000k和

.NET 2.0编译EXE使用25,000k - 50,000k及时这可能。我认为旧语言比新版本更轻松。



寻求专家更好的解释?????????????? ????



感谢你!



JMMS Karunarathne。

I have developed advanced POS system as follows

front-end using VS2003 .NET 1.1
Back-office using VS2008 .NET 3.5

my problem is my .NET 1.1 compiled front-end is use more memory in run time more than same front-end compiled in .NET2.0

windows task manager shows .NET 1.1 exe using 50,000k - 70,000k and
.NET 2.0 compiled EXE use 25,000k - 50,000k in time is this possible. i thought older language are light to memory than newer version of them.

looking for better explanation from experts?????????????????

Thanking You!

JMMS Karunarathne.

推荐答案

是的,这是可能的。然而,可能有几个原因,例如:



框架本身在不同版本之间增强使用更少的内存



垃圾收集器在不同版本之间得到增强,以便更好地清理内存。



.Net框架存在可能导致程序使用更多内存的错误。根据版本的不同,Microsoft支持中有很多修复。



等等......
Yes, it''s possible. However there may be several reasons for this, for example:

The framework itself is enhanced between versions to use less memory

The garbage collector is enhanced between versions to better clean up the memory.

.Net framework has bugs which may cause the program to use more memory. Depending on the version, there are ''lots'' of fixes in Microsoft support.

and so on...


这篇关于.NET 2.0或更高版本的程序在运行时使用的内存少于同样的.NET 1.1编译程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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