473,909 Members | 6,117 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Performance issues using .NET C++

TGF
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
Nov 16 '05 #1
6 2392
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:%2******** ********@TK2MSF TNGP12.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

Nov 16 '05 #2
TGF
Pent:

It primarily occurs (I think) in the UI thread when I go to update a
RichTextBox. I need to update this, line by line, very very quickly and
very often. I am currently using it's AppendText() method. It seems to go
very slow when it has to scroll after and AppendText() call. What is
strange though is if I stop updating it and then using the scrollbar, I can
scroll through the text at lightning speed. So I am not sure why any of
this happens, but it is frustrating nonetheless. Got any ideas? I would
even go with another visual component if I thought it would work better.

-TGF

"Pent" <pent> wrote in message news:ey******** ******@tk2msftn gp13.phx.gbl...
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:%2******** ********@TK2MSF TNGP12.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


Nov 16 '05 #3
Your problem is somewhere else. I created simple winform app, added timer to
fire every 20ms. Placed RichTextBox and called it's AppendText with 200 char
strings from timer callback. No slow down whatsoever.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:O5******** ******@TK2MSFTN GP09.phx.gbl...
Pent:

It primarily occurs (I think) in the UI thread when I go to update a
RichTextBox. I need to update this, line by line, very very quickly and
very often. I am currently using it's AppendText() method. It seems to go very slow when it has to scroll after and AppendText() call. What is
strange though is if I stop updating it and then using the scrollbar, I can scroll through the text at lightning speed. So I am not sure why any of
this happens, but it is frustrating nonetheless. Got any ideas? I would
even go with another visual component if I thought it would work better.

-TGF

"Pent" <pent> wrote in message news:ey******** ******@tk2msftn gp13.phx.gbl...
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:%2******** ********@TK2MSF TNGP12.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



Nov 16 '05 #4
TGF
Pent,

I did the same thing, but with a 1ms timer (fastest it can go), and it
is not able to keep up with my Borland C++ Builder version. We are talking
about 2 to 5 fold slower....but this only happens when I make the TextBox
large (about 60 lines of text displayed at once). The slow down is the
RichTextBox. It just is not very fast. Are you getting similar results?

-TGF

-TGF
"Pent" <pent> wrote in message news:Og******** ******@tk2msftn gp13.phx.gbl...
Your problem is somewhere else. I created simple winform app, added timer to fire every 20ms. Placed RichTextBox and called it's AppendText with 200 char strings from timer callback. No slow down whatsoever.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:O5******** ******@TK2MSFTN GP09.phx.gbl...
Pent:

It primarily occurs (I think) in the UI thread when I go to update a
RichTextBox. I need to update this, line by line, very very quickly and
very often. I am currently using it's AppendText() method. It seems to go
very slow when it has to scroll after and AppendText() call. What is
strange though is if I stop updating it and then using the scrollbar, I

can
scroll through the text at lightning speed. So I am not sure why any of
this happens, but it is frustrating nonetheless. Got any ideas? I would
even go with another visual component if I thought it would work better.

-TGF

"Pent" <pent> wrote in message

news:ey******** ******@tk2msftn gp13.phx.gbl... It is feasible. This can't be answered without looking at the bottlenecks that you are encountering.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:%2******** ********@TK2MSF TNGP12.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
>
>



Nov 16 '05 #5
nope, i don't see that

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Pent,

I did the same thing, but with a 1ms timer (fastest it can go), and it
is not able to keep up with my Borland C++ Builder version. We are talking about 2 to 5 fold slower....but this only happens when I make the TextBox
large (about 60 lines of text displayed at once). The slow down is the
RichTextBox. It just is not very fast. Are you getting similar results?

-TGF

-TGF
"Pent" <pent> wrote in message news:Og******** ******@tk2msftn gp13.phx.gbl...
Your problem is somewhere else. I created simple winform app, added timer to
fire every 20ms. Placed RichTextBox and called it's AppendText with 200

char
strings from timer callback. No slow down whatsoever.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:O5******** ******@TK2MSFTN GP09.phx.gbl...
Pent:

It primarily occurs (I think) in the UI thread when I go to update a
RichTextBox. I need to update this, line by line, very very quickly and very often. I am currently using it's AppendText() method. It seems to
go
very slow when it has to scroll after and AppendText() call. What is
strange though is if I stop updating it and then using the scrollbar,
I can
scroll through the text at lightning speed. So I am not sure why any

of this happens, but it is frustrating nonetheless. Got any ideas? I

would even go with another visual component if I thought it would work better.
-TGF

"Pent" <pent> wrote in message

news:ey******** ******@tk2msftn gp13.phx.gbl...
> It is feasible. This can't be answered without looking at the

bottlenecks
> that you are encountering.
>
> "TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
> news:%2******** ********@TK2MSF TNGP12.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
> >
> >
>
>



Nov 16 '05 #6
TGF
Could you send me your project and I will test it out on my machine?

-TGF
"Pent" <pent> wrote in message news:O6******** ******@TK2MSFTN GP10.phx.gbl...
nope, i don't see that

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:OM******** ******@TK2MSFTN GP12.phx.gbl...
Pent,

I did the same thing, but with a 1ms timer (fastest it can go), and it
is not able to keep up with my Borland C++ Builder version. We are talking
about 2 to 5 fold slower....but this only happens when I make the TextBox large (about 60 lines of text displayed at once). The slow down is the
RichTextBox. It just is not very fast. Are you getting similar results?

-TGF

-TGF
"Pent" <pent> wrote in message

news:Og******** ******@tk2msftn gp13.phx.gbl... Your problem is somewhere else. I created simple winform app, added timer
to
fire every 20ms. Placed RichTextBox and called it's AppendText with 200
char
strings from timer callback. No slow down whatsoever.

"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:O5******** ******@TK2MSFTN GP09.phx.gbl...
> Pent:
>
> It primarily occurs (I think) in the UI thread when I go to update a
> RichTextBox. I need to update this, line by line, very very quickly and > very often. I am currently using it's AppendText() method. It
seems to go
> very slow when it has to scroll after and AppendText() call. What
is > strange though is if I stop updating it and then using the scrollbar,
I can
> scroll through the text at lightning speed. So I am not sure why
any
of > this happens, but it is frustrating nonetheless. Got any ideas? I

would
> even go with another visual component if I thought it would work better. >
> -TGF
>
>
>
> "Pent" <pent> wrote in message
news:ey******** ******@tk2msftn gp13.phx.gbl...
> > It is feasible. This can't be answered without looking at the
bottlenecks
> > that you are encountering.
> >
> > "TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
> > news:%2******** ********@TK2MSF TNGP12.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
> > >
> > >
> >
> >
>
>



Nov 16 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4688
by: sandy | last post by:
Hi All, I am a newbie to MySQL and Python. At the first place, I would like to know what are the general performance issues (if any) of using MySQL with Python. By performance, I wanted to know how will the speed be, what is the memory overhead involved, etc during database specific operations (retrieval, update, insert, etc) when MySQL is used with Python.
2
1660
by: Unruled Boy | last post by:
1.The follow two ways to declare one object: any difference? especially its performance. a.Private m_objMyObject As MyObject=New MyObject() b.Private m_objMyObject As MyObject m_objMyObject=New MyObject 2.Any difference between a and b? a. For Each childItem In SomeItems Dim objData As DataObject=m_objOneSource.GetData(childItem.ID)
9
5778
by: Java script Dude | last post by:
In many languages, it is necessary to string together multiple strings into one string for use over multiple lines of code. Which one is the most efficient from the interpreters perspective: Case 1: str += '<?xml version="1.0" encoding="' + charset + '"?>\n'; str += '<view-source-with version="1.1">\n'; str += ' <default-item-index>' + this.defaultItem + '</default-item-index>\n';
16
2682
by: David W. Fenton | last post by:
http://www.granite.ab.ca/access/performancefaq.htm I hope Tony doesn't mind my opening a discussion of some issues on his performance FAQ page here in the newsgroup. This is not meant as criticism, at all, as I am not alleging error. I'm just asking about a couple of things to open up the discussion to see what people have to say about them. 1. BeginTrans/CommitTrans to improve performance: has anyone ever done this? The KB article...
115
7702
by: Mark Shelor | last post by:
I've encountered a troublesome inconsistency in the C-language Perl extension I've written for CPAN (Digest::SHA). The problem involves the use of a static array within a performance-critical transform function. When compiling under gcc on my big-endian PowerPC (Mac OS X), declaring this array as "static" DECREASES the transform throughput by around 5%. However, declaring it as "static" on gcc/Linux/Intel INCREASES the throughput by...
4
3370
by: Martin | last post by:
I am using graphics as backgrounds for forms,buttons,labels etc. The question is: is it faster to load all graphics from files on app start or to use it embeded (places in editor during design). Reason for my question is that application has 5mb, while without graphics it has cca 400kb. Graphic files (bmps) take about 200kb (in program, they are repeated many times, ie almost all labels (around 200) have same background image)). Also,...
13
2781
by: bjarne | last post by:
Willy Denoyette wrote; > ... it > was not the intention of StrousTrup to the achieve the level of efficiency > of C when he invented C++, ... Ahmmm. It was my aim to match the performance of C and I achieved that aim very early on. See, for example "The Design and Evolution of C++". -- Bjarne Stroustrup; http://www.research.att.com/~bs
4
1374
by: IamZIM! | last post by:
I was wondering what performance advantages (or ramifications for all I know) might be apparent if you used Managed C++ (MC++ from know on) instead of C#? I know C# is a pure .NET language since it was made for the .NET Framework, but because of my code has been migrated from Java, I need to make a few API calls outside of the CLR. I'm quite new to C#, cause I'm more familiar with Java and C++, but I would assume that any programmatic...
19
3162
by: Tom Jastrzebski | last post by:
Hello, I was just testing VB.Net on Framework.Net 2.0 performance when I run into the this problem. This trivial code attached below executed hundreds, if not thousand times faster in VB 6.0 than in .Net environment, under VS 2005 Beta 2. Does anyone have any idea whether this will be addressed in the final release? Thanks, Tomasz
13
4620
by: atlaste | last post by:
Hi, I'm currently developing an application that uses a lot of computational power, disk access and memory caching (to be more exact: an information retrieval platform). In these kind of applications the last thing that remains is bare performance tuning. So for example, you can do an 'if then else' on a bit like a 'case/ switch', an 'if/then/else' and as a multiplication with a static buffer. Or, you can do sorting with an inline...
0
10035
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9877
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10919
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11046
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6138
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4774
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3357
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.