使用.NET与Borland的性能 [英] Perfomance using .NET vs. Borland

查看:44
本文介绍了使用.NET与Borland的性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以将.NET用于非常快速的
的应用程序。我们有一些非常快的应用程序,使用Borland C ++ Builder在Borland C ++中编写了
。我们希望移植到

..NET,但是我们开发的一些测试模型比它的Borland版本更快,更慢了.b $ b。这是由于.NET Framework和

JIT吗?或者是我们应该在项目设置中寻找的东西

和/或编译器设置?性能下降约两倍。


-

TGF

解决方案



" TGF" < tf *** @ engr.uconn.edu [删除括号]>在留言中写道

新闻:e7 ************** @ TK2MSFTNGP11.phx.gbl ...

我想知道是不是将.NET用于必须非常快的应用程序是可行的。我们有一些非常快的应用程序,使用Borland C ++ Builder在Borland C ++中编写。我们希望移植到.NET,但是我们开发的一些测试模型比它的Borland版本要慢很多。这是由.NET Framework和
JIT引起的吗?或者是我们应该在项目设置和/或编译器设置中寻找的东西?性能下降约为两倍。

-
TGF



我们在谈论什么样的应用程序? Windows,控制台等?

您知道您不限于Visual Studio .NET中依赖于.NET Framework的
应用程序类型,对吗? IOW,您可以直接创建

Windows API应用程序,或MFC应用程序,或直接控制台

应用程序。您可能会将苹果与橙子进行比较。


-

彼得 - [MVP - 学术]


< blockquote> Peter,


我在谈论使用托管的

扩展的.NET Windows Form C ++应用程序。具体来说,我有一个RichTextBox组件,可以非常快速地逐行更新
。在Borland C ++ Builder应用程序中我创建了
,它的速度非常快(这很好)。在.NET Windows

Forms应用程序中,它非常缓慢。代码几乎相同,

虽然补偿了.NET中的托管扩展。是否可以预期(由于.NET框架)这是否会减缓?或者我错过了什么?


-TGF

Peter van der Goes < p _ ********** @ mars.cox.net>在消息中写道

news:u%**************** @ TK2MSFTNGP12.phx.gbl ...


TGF < tf *** @ engr.uconn.edu [删除括号]>在消息中写道
新闻:e7 ************** @ TK2MSFTNGP11.phx.gbl ...

我想知道是否可以使用.NET用于具有
的应用程序非常快。我们有一些非常快的应用程序,使用Borland C ++ Builder用Borland C ++编写的
。我们希望移植到.NET,但我们开发的一些测试模型比它的Borland版本慢了多少b $ b。这是由于.NET Framework和
JIT吗?或者我们应该在项目
设置和/或编译器设置中寻找什么?性能下降约两倍。

-
TGF

我们在谈论什么样的应用程序? Windows,控制台等?
您知道您不限于Visual Studio .NET中依赖于.NET Framework的应用程序类型,对吗? IOW,您可以创建直接的Windows API应用程序,或MFC应用程序,或直接



控制台应用程序。您可能会将苹果与橙子进行比较。

-
彼得 - [MVP - 学术]



< blockquote>

" TGF" < tf *** @ engr.uconn.edu [删除括号]>在消息中写道

news:O0 ************** @ TK2MSFTNGP11.phx.gbl ...

Peter,
我正在讨论使用
托管扩展的.NET Windows Form C ++应用程序。具体来说,我有一个RichTextBox组件,可以非常快速地逐行更新。在我创建的Borland C ++ Builder应用程序中,它的速度非常快(这很好)。在.NET Windows
Forms应用程序中,它非常缓慢。代码几乎与
相同,虽然补偿了.NET中的托管扩展。这个减速
是预期的(由于.NET框架),还是我错过了什么?

-TGF


$ b $我还是很困惑。您正在构建一个Visual Studio .NET 2003 C ++ Windows

表单模板应用程序,并将其与Borland C ++ Builder中生成的应用程序类型进行比较

? Borland app

采用什么技术?猫头鹰? MFC? API调用?

无论如何,我可能不是解决你问题的合适人选,因为

所有我能提供的都是有限的,一些测试WinForm的轶事证据应用程序

使用文本框,单行和多行,富文本框,列表框,

等,相比之下没有显示任何明显的性能恶化使用MFC的早期示例
。这并不意味着它不可能发生,但

有人必须仔细查看你的应用程序中发生的事情

来提供有意义的响应。

希望有其他更具体经验的人会跳进

帖子。


-

************************************************ ** ********************

**所有意见都是我的。不要归咎于其他地方!

********************************************* * ********************

** Peter van der Goes,计算机与教授信息技术

**玫瑰州立学院

***********************联系*** *********************************

**办公室电子邮件: pv ** @ rose.edu

**家庭电子邮件: p _ ********** @ cox.net

**网页: http://www.rose.edu/Faculty/pvan/index.htm

***************************************** ********* ********************


I am wondering if it is feasible to use .NET for applications that have to
be very fast. We have a few applications that are blazingly fast, written
in Borland C++ using Borland C++ Builder. We would like to port over to
..NET, but some of the test models we have developed are MUCH, MUCH slower
than it''s Borland counterpart. Is this due to the .NET Framework and the
JIT? Or is it something we should be looking for in the project settings
and/or compiler settings? The performance decrease is about two-fold.

--
TGF

解决方案


"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...

I am wondering if it is feasible to use .NET for applications that have to
be very fast. We have a few applications that are blazingly fast, written
in Borland C++ using Borland C++ Builder. We would like to port over to
.NET, but some of the test models we have developed are MUCH, MUCH slower
than it''s Borland counterpart. Is this due to the .NET Framework and the
JIT? Or is it something we should be looking for in the project settings
and/or compiler settings? The performance decrease is about two-fold.

--
TGF


What kind of applications are we talking about? Windows, console, etc.?
You are aware that you aren''t limited to .NET Framework-dependent
application types in Visual Studio .NET, correct? IOW, you can create
straight Windows API applications, or MFC applications, or straight console
applications. You may be comparing apples to oranges.

--
Peter - [MVP - Academic]


Peter,

I am talking about a .NET Windows Form C++ Application using the managed
extensions. Specifically, I have a RichTextBox component that is to be
updated, line by line very very quickly. In the Borland C++ Builder app I
have created, it is blindingly fast (this is good). In the .NET Windows
Forms application, it is painfully slow. The code is pretty much the same,
albeit compensating for the managed extensions in .NET. Is this slowdown to
be expected (due to the .NET framework), or am I missing something?

-TGF
"Peter van der Goes" <p_**********@mars.cox.net> wrote in message
news:u%****************@TK2MSFTNGP12.phx.gbl...


"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:e7**************@TK2MSFTNGP11.phx.gbl...

I am wondering if it is feasible to use .NET for applications that have to be very fast. We have a few applications that are blazingly fast, written in Borland C++ using Borland C++ Builder. We would like to port over to
.NET, but some of the test models we have developed are MUCH, MUCH slower than it''s Borland counterpart. Is this due to the .NET Framework and the JIT? Or is it something we should be looking for in the project settings and/or compiler settings? The performance decrease is about two-fold.

--
TGF

What kind of applications are we talking about? Windows, console, etc.?
You are aware that you aren''t limited to .NET Framework-dependent
application types in Visual Studio .NET, correct? IOW, you can create
straight Windows API applications, or MFC applications, or straight


console applications. You may be comparing apples to oranges.

--
Peter - [MVP - Academic]




"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:O0**************@TK2MSFTNGP11.phx.gbl...

Peter,

I am talking about a .NET Windows Form C++ Application using the managed extensions. Specifically, I have a RichTextBox component that is to be
updated, line by line very very quickly. In the Borland C++ Builder app I
have created, it is blindingly fast (this is good). In the .NET Windows
Forms application, it is painfully slow. The code is pretty much the same, albeit compensating for the managed extensions in .NET. Is this slowdown to be expected (due to the .NET framework), or am I missing something?

-TGF


I''m still confused. You''re building a Visual Studio .NET 2003 C++ Windows
Form template application, and comparing it to what type of application
produced in Borland C++ Builder? What technology does the Borland app
employ? OWL? MFC? API calls?
Regardless, I''m probably not the right person to address your question, as
all I can provide is limited, anecdotal evidence of a few test WinForm apps
that employ textboxes, single and multi-line, rich text boxes, list boxes,
etc that don''t show any noticeable performance deteriorations in comparison
to earlier examples using MFC. That doesn''t mean it can''t happen, but
someone would have to look at exactly what is going on in your application
to provide a meaningful response.
Hopefully, someone else with more specific experience will jump into the
thread.

--
************************************************** ********************
** All opinions are mine alone.Do not attribute elsewhere!
************************************************** ********************
** Peter van der Goes, Professor, Computers & Information Technology
** Rose State College
*********************** Contact ************************************
** Office e-mail: pv**@rose.edu
** Home e-mail: p_**********@cox.net
** Web Page: http://www.rose.edu/Faculty/pvan/index.htm
************************************************** ********************


这篇关于使用.NET与Borland的性能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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