471,071 Members | 1,510 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,071 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 2093
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by sandy | last post: by
9 posts views Thread by Java script Dude | last post: by
16 posts views Thread by David W. Fenton | last post: by
115 posts views Thread by Mark Shelor | last post: by
4 posts views Thread by Martin | last post: by
13 posts views Thread by bjarne | last post: by
4 posts views Thread by IamZIM! | last post: by
13 posts views Thread by atlaste | last post: by
reply views Thread by leo001 | last post: by

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.