473,387 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2349
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:%2****************@TK2MSFTNGP12.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**************@tk2msftngp13.phx.gbl...
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:%2****************@TK2MSFTNGP12.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.uconn.edu[remove brackets]> wrote in message
news:O5**************@TK2MSFTNGP09.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**************@tk2msftngp13.phx.gbl...
It is feasible. This can't be answered without looking at the bottlenecks
that you are encountering.

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:%2****************@TK2MSFTNGP12.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**************@tk2msftngp13.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.uconn.edu[remove brackets]> wrote in message
news:O5**************@TK2MSFTNGP09.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**************@tk2msftngp13.phx.gbl... It is feasible. This can't be answered without looking at the bottlenecks that you are encountering.

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:%2****************@TK2MSFTNGP12.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.uconn.edu[remove brackets]> wrote in message
news:OM**************@TK2MSFTNGP12.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**************@tk2msftngp13.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.uconn.edu[remove brackets]> wrote in message
news:O5**************@TK2MSFTNGP09.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**************@tk2msftngp13.phx.gbl...
> It is feasible. This can't be answered without looking at the

bottlenecks
> that you are encountering.
>
> "TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
> news:%2****************@TK2MSFTNGP12.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**************@TK2MSFTNGP10.phx.gbl...
nope, i don't see that

"TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
news:OM**************@TK2MSFTNGP12.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**************@tk2msftngp13.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.uconn.edu[remove brackets]> wrote in message
news:O5**************@TK2MSFTNGP09.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**************@tk2msftngp13.phx.gbl...
> > It is feasible. This can't be answered without looking at the
bottlenecks
> > that you are encountering.
> >
> > "TGF" <tf***@engr.uconn.edu[remove brackets]> wrote in message
> > news:%2****************@TK2MSFTNGP12.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
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...
2
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...
9
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: ...
16
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...
115
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...
4
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)....
13
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...
4
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...
19
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...
13
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...

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.