473,230 Members | 1,457 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,230 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 2340
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: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.