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 11 2119
"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:e7******** ******@TK2MSFTN GP11.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_**********@m ars.cox.net> wrote in message
news:u%******** ********@TK2MSF TNGP12.phx.gbl. .. "TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message news:e7******** ******@TK2MSFTN GP11.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.uco nn.edu[remove brackets]> wrote in message
news:O0******** ******@TK2MSFTN GP11.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_**********@co x.net
** Web Page: http://www.rose.edu/Faculty/pvan/index.htm
*************** *************** *************** *************** **********
AFAIK, Windows Forms (at least parts of System.Drawing) don't get hardware
accelleration. This is based on old information, so it might be incorrect
:S.
Are you using the same control in both scenarios? Are you sure you don't
have any optmization code in your Borland project that's helping out?
For updating a control, I'd recommend disabling repainting of it, update it,
and then repaint it. Making it perform multiple repaints in rapid
succession can be rather slow.
-mike
MVP
"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:O0******** ******@TK2MSFTN GP11.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
"Peter van der Goes" <p_**********@m ars.cox.net> wrote in message news:u%******** ********@TK2MSF TNGP12.phx.gbl. .. "TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message news:e7******** ******@TK2MSFTN GP11.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]
"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message
news:u$******** ********@TK2MSF TNGP12.phx.gbl. .. AFAIK, Windows Forms (at least parts of System.Drawing) don't get hardware accelleration. This is based on old information, so it might be incorrect :S.
Are you using the same control in both scenarios? Are you sure you don't have any optmization code in your Borland project that's helping out?
For updating a control, I'd recommend disabling repainting of it, update
it, and then repaint it. Making it perform multiple repaints in rapid succession can be rather slow.
-mike MVP
Mike, perhaps you can clear something up for me.
I was under the impression that the OP was using the new Windows Form
Application (.NET)template in VS.NET 2003 and comparing the "slowness" of it
to a similar project built in Borland C++ Builder. I did a little research
on C++ Builder, and did not see any indication that it supports the .NET
framework (at least not so stated on the Borland product page), let alone
feature an analog to the Windows Form (.NET) template? That's why I wanted
the OP to tell us if he was using OWL, MFC or whatever. Am I out in left
field on this?
Thanks in advance.
I don't know much about Borlands solutions either (but I do believe they
have some .NET offering). I do know that Windows Forms wraps some common
controls with a layer of managed code. I guess I'm seconding your question
about the actual environment to make sure this is an apples to apples
comparison.
-mike
MVP
"Peter van der Goes" <p_**********@m ars.cox.net> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. "Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message news:u$******** ********@TK2MSF TNGP12.phx.gbl. .. AFAIK, Windows Forms (at least parts of System.Drawing) don't get
hardware accelleration. This is based on old information, so it might be
incorrect :S.
Are you using the same control in both scenarios? Are you sure you
don't have any optmization code in your Borland project that's helping out?
For updating a control, I'd recommend disabling repainting of it, update it, and then repaint it. Making it perform multiple repaints in rapid succession can be rather slow.
-mike MVP Mike, perhaps you can clear something up for me. I was under the impression that the OP was using the new Windows Form Application (.NET)template in VS.NET 2003 and comparing the "slowness" of
it to a similar project built in Borland C++ Builder. I did a little research on C++ Builder, and did not see any indication that it supports the .NET framework (at least not so stated on the Borland product page), let alone feature an analog to the Windows Form (.NET) template? That's why I
wanted the OP to tell us if he was using OWL, MFC or whatever. Am I out in left field on this? Thanks in advance.
Guys:
The Borland environment I was using is basically a "Non .NET" forms
based IDE. The support for form in Borland Builder seems to be much better.
The Borland classes that make it possible are basically wrappers around MS
MFC's. Not my choice to switch to .NET, but have to go with it nonetheless.
It seems maybe because of the .NET framework (MSIL use), the RichTextBox
component is not able to AppendText() as quickly as it's MFC counterpart.
Is this the case that you guys see? I did a test with a Timer component
calling a Tick event every 1ms. This is a bare bones form that I did the
test on. The RichTextBox was able to do about 100 lines a second compared
to about 500 lines a second using Borland C++ Builder.
-TGF
"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. I don't know much about Borlands solutions either (but I do believe they have some .NET offering). I do know that Windows Forms wraps some common controls with a layer of managed code. I guess I'm seconding your
question about the actual environment to make sure this is an apples to apples comparison.
-mike MVP
"Peter van der Goes" <p_**********@m ars.cox.net> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. "Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message news:u$******** ********@TK2MSF TNGP12.phx.gbl. .. AFAIK, Windows Forms (at least parts of System.Drawing) don't get hardware accelleration. This is based on old information, so it might be incorrect :S.
Are you using the same control in both scenarios? Are you sure you don't have any optmization code in your Borland project that's helping out?
For updating a control, I'd recommend disabling repainting of it,
update it, and then repaint it. Making it perform multiple repaints in rapid succession can be rather slow.
-mike MVP Mike, perhaps you can clear something up for me. I was under the impression that the OP was using the new Windows Form Application (.NET)template in VS.NET 2003 and comparing the "slowness"
of it to a similar project built in Borland C++ Builder. I did a little
research on C++ Builder, and did not see any indication that it supports the .NET framework (at least not so stated on the Borland product page), let
alone feature an analog to the Windows Form (.NET) template? That's why I
wanted the OP to tell us if he was using OWL, MFC or whatever. Am I out in left field on this? Thanks in advance.
Did you turn off painting while updating?
-mike
MVP
"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message
news:uc******** ******@TK2MSFTN GP10.phx.gbl... Guys:
The Borland environment I was using is basically a "Non .NET" forms based IDE. The support for form in Borland Builder seems to be much
better. The Borland classes that make it possible are basically wrappers around MS MFC's. Not my choice to switch to .NET, but have to go with it
nonetheless. It seems maybe because of the .NET framework (MSIL use), the RichTextBox component is not able to AppendText() as quickly as it's MFC counterpart. Is this the case that you guys see? I did a test with a Timer component calling a Tick event every 1ms. This is a bare bones form that I did the test on. The RichTextBox was able to do about 100 lines a second compared to about 500 lines a second using Borland C++ Builder.
-TGF
"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. I don't know much about Borlands solutions either (but I do believe they have some .NET offering). I do know that Windows Forms wraps some
common controls with a layer of managed code. I guess I'm seconding your question about the actual environment to make sure this is an apples to apples comparison.
-mike MVP
"Peter van der Goes" <p_**********@m ars.cox.net> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. "Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message news:u$******** ********@TK2MSF TNGP12.phx.gbl. .. > AFAIK, Windows Forms (at least parts of System.Drawing) don't get
hardware > accelleration. This is based on old information, so it might be incorrect > :S. > > Are you using the same control in both scenarios? Are you sure you don't > have any optmization code in your Borland project that's helping
out? > > For updating a control, I'd recommend disabling repainting of it, update it, > and then repaint it. Making it perform multiple repaints in rapid > succession can be rather slow. > > -mike > MVP > Mike, perhaps you can clear something up for me. I was under the impression that the OP was using the new Windows Form Application (.NET)template in VS.NET 2003 and comparing the "slowness" of it to a similar project built in Borland C++ Builder. I did a little research on C++ Builder, and did not see any indication that it supports the
..NET framework (at least not so stated on the Borland product page), let alone feature an analog to the Windows Form (.NET) template? That's why I
wanted the OP to tell us if he was using OWL, MFC or whatever. Am I out in
left field on this? Thanks in advance.
No, how do I do that?
-TGF
"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message
news:Ow******** ******@TK2MSFTN GP11.phx.gbl... Did you turn off painting while updating? -mike MVP
"TGF" <tf***@engr.uco nn.edu[remove brackets]> wrote in message news:uc******** ******@TK2MSFTN GP10.phx.gbl... Guys:
The Borland environment I was using is basically a "Non .NET" forms based IDE. The support for form in Borland Builder seems to be much better. The Borland classes that make it possible are basically wrappers around
MS MFC's. Not my choice to switch to .NET, but have to go with it nonetheless. It seems maybe because of the .NET framework (MSIL use), the RichTextBox component is not able to AppendText() as quickly as it's MFC
counterpart. Is this the case that you guys see? I did a test with a Timer component calling a Tick event every 1ms. This is a bare bones form that I did
the test on. The RichTextBox was able to do about 100 lines a second
compared to about 500 lines a second using Borland C++ Builder.
-TGF
"Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message news:%2******** ********@TK2MSF TNGP12.phx.gbl. .. I don't know much about Borlands solutions either (but I do believe
they have some .NET offering). I do know that Windows Forms wraps some common controls with a layer of managed code. I guess I'm seconding your question about the actual environment to make sure this is an apples to apples comparison.
-mike MVP
"Peter van der Goes" <p_**********@m ars.cox.net> wrote in message news:%2******** ********@TK2MSF TNGP11.phx.gbl. .. > > "Michael Giagnocavo [MVP]" <mg*******@Atre vido.net> wrote in message > news:u$******** ********@TK2MSF TNGP12.phx.gbl. .. > > AFAIK, Windows Forms (at least parts of System.Drawing) don't get hardware > > accelleration. This is based on old information, so it might be incorrect > > :S. > > > > Are you using the same control in both scenarios? Are you sure
you don't > > have any optmization code in your Borland project that's helping out? > > > > For updating a control, I'd recommend disabling repainting of it, update > it, > > and then repaint it. Making it perform multiple repaints in rapid > > succession can be rather slow. > > > > -mike > > MVP > > > Mike, perhaps you can clear something up for me. > I was under the impression that the OP was using the new Windows
Form > Application (.NET)template in VS.NET 2003 and comparing the
"slowness" of it > to a similar project built in Borland C++ Builder. I did a little research > on C++ Builder, and did not see any indication that it supports the .NET > framework (at least not so stated on the Borland product page), let
alone > feature an analog to the Windows Form (.NET) template? That's why I wanted > the OP to tell us if he was using OWL, MFC or whatever. Am I out in left > field on this? > Thanks in advance. > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ziggi |
last post by:
Hi. I want to get a C++ IDE, but I dont know whether to go for Bill Gate's
solution or Borland's. Could any kind folks detail the relative strength
and weaknesses of both, and also tell me which you yourselves prefer.
Thanks in advance.
Ziggi
|
by: Andrew S. Giles |
last post by:
I thought I would post here, as I am sure someone, somewhere has run into
this problem, and might have a good solution for me.
I am writing an applicaiton in C# that will accept data and then put it into
an Excel spreadsheet. Easy, right? Well it is, until you have to get the
data from another application that is written in Borland C++ PowerBuilder 5.
The situation is that the Borland Code isnt going to get re-written (too
expensive,...
|
by: scott.sara.news |
last post by:
I am having major problems accessing some API's and I believe the
problem is a 16-bit app.
I originally had an application written in Borland Builder C++ 6
(32-bit)that loaded some API's for a specific database environment I
use. Everything worked great.
I am now trying to do the same thing in C# with the same DLL's but am
having a problem with one API call in particular. To begin using these
API's I have to start the environment by...
|
by: TGF |
last post by:
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...
|
by: =?Utf-8?B?VmVlcmFiaGFkcmFpYWggTCBN?= |
last post by:
Hi,
I have two databases D1 with 6 million records and D2 with 95 thousand
records. I need to check Common records from these two databases based on
UserID and need to insert into other database D3 and also need to create XML
files.
For this i followed below approach.
I have used two threads.
-->one thread to Pick the users from D1, filter out against D2 and will be
inserting into D3.
| |
by: MickJ |
last post by:
Hi,
I would like to write High perfomance server using C#. It would be desirable to hear offers and advices on this subject.
|
by: jairathore |
last post by:
Hi to all,
I m very much novice the borland c++ envoirment i want to build a application whose code is devloped in borland c++ ,i have make file associated that application.i tried to compile this make file sucessfullly using borland command line compiler but the problem is like that it generate me output as .exe file but i need output as .dll file (because native iterface i can use it some where)when i compile the make file.
i kow this...
|
by: =?Utf-8?B?QWxleEU=?= |
last post by:
We are using .NET (C#) and we added several COM dlls as Resources to our
projects. These COM dll's were created using Borland C++ Builder 6. When we
add any COMs built with Borland into our .NET projects, we have functionality
problems with the Borland COM (icons disappearing). We wrote a little test
..NET application and added just one Borland COM dll and we still see the
problem (no icons). Has anyone had this problem? Any help would be...
|
by: ferozanna |
last post by:
I am using Asp.net 1.3 with C#
My application used by call center people
My applicaton is a three tier arch I have create data layer as class ibrary which goint to talke Ssqlserver 205 db
At time 2000 to 3000 user are using
How can i improve my application perfomance, Give me tips
|
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,...
|
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,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |