473,480 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

NET 2.0 speed compared to NET 1.1

Hi gurus.

Does anyone have any experience as to whether .NET 2.0 will be any faster
executing than .NET 1.1 ?

We are looking at starting a new project in .NET and are getting feedback
from other developers that they have found problems with apparent speed of
apps being slower than their clients were expecting having come from Win32
Delphi apps.

Does NGen'ing an app help with the speed ?

Joanna

--
Joanna Carter
Consultant Software Engineer
Nov 17 '05 #1
4 1350
Joanna,

It all depends on the application you are writing. All things
considered, I don't see any reason why a .NET program can't perform as well
as a non-managed program.

.NET 2.0 will be faster in some areas, but not across the board. These
kind of improvements are not really going to be realized in such a general
manner.

There are also people out there that are writing code for the managed
environments that are doing it wrong, which can contribute to this.

The problem here is the use of the word "apparent". Unless you have
numbers indicating that there is a massive differential in performance, I
wouldn't bother trying to guess. Get some hard numbers, making sure that
best practices are being observed, and then make a determination based on
that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joanna Carter (TeamB)" <jo*****@nospamforme.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
Hi gurus.

Does anyone have any experience as to whether .NET 2.0 will be any faster
executing than .NET 1.1 ?

We are looking at starting a new project in .NET and are getting feedback
from other developers that they have found problems with apparent speed of
apps being slower than their clients were expecting having come from Win32
Delphi apps.

Does NGen'ing an app help with the speed ?

Joanna

--
Joanna Carter
Consultant Software Engineer

Nov 17 '05 #2
Having never used it before I recently suggested the consideration of ngen
to somebody asking the same type of questions but one of the fellas who also
replied to the topic stated ngen has 'issues.'

Study the benefits of using aspnet_compiler which is the term you can submit
to search.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ee******************@TK2MSFTNGP15.phx.gbl...
Joanna,

It all depends on the application you are writing. All things
considered, I don't see any reason why a .NET program can't perform as
well as a non-managed program.

.NET 2.0 will be faster in some areas, but not across the board. These
kind of improvements are not really going to be realized in such a general
manner.

There are also people out there that are writing code for the managed
environments that are doing it wrong, which can contribute to this.

The problem here is the use of the word "apparent". Unless you have
numbers indicating that there is a massive differential in performance, I
wouldn't bother trying to guess. Get some hard numbers, making sure that
best practices are being observed, and then make a determination based on
that.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joanna Carter (TeamB)" <jo*****@nospamforme.com> wrote in message
news:eQ**************@TK2MSFTNGP15.phx.gbl...
Hi gurus.

Does anyone have any experience as to whether .NET 2.0 will be any faster
executing than .NET 1.1 ?

We are looking at starting a new project in .NET and are getting feedback
from other developers that they have found problems with apparent speed
of
apps being slower than their clients were expecting having come from
Win32
Delphi apps.

Does NGen'ing an app help with the speed ?

Joanna

--
Joanna Carter
Consultant Software Engineer


Nov 17 '05 #3
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> a écrit
dans le message de news: ee**************@TK2MSFTNGP15.phx.gbl...
It all depends on the application you are writing. All things
considered, I don't see any reason why a .NET program can't perform as well as a non-managed program.

.NET 2.0 will be faster in some areas, but not across the board. These kind of improvements are not really going to be realized in such a general
manner.
What areas tend to induce speed problems ?

We will be using our own data persistence layer and connecting UI controls
to objects and lists rather than directly to data tables.

The data layer will dynamically create SQL statements for submission to a
single query component, so we will not be using datasets of multiple tables
which, I gather, can be a potential bottleneck.

Once the code has been run once, I gather that the JIT "penalty" is removed
from the equation and that I should expect native or better ^performance ?
There are also people out there that are writing code for the managed
environments that are doing it wrong, which can contribute to this.


Don't worry, as a Delphi consultant, I get to see a fair amount of bad code
that can make Delphi apps run like Java <gd&r>

Joanna

--
Joanna Carter
Consultant Software Engineer
Nov 17 '05 #4
Hi ,

This is my take on the same :

1. .Net 2.0 , as Nicolas suggested will be a definite improvement in certain
areas , but that will be more related to optimization , but how much human
perception will catch it , totally depends on application .

2. There are cases , where actually un managed code can perform better ,
especially when .net code has to go for some kind of P Invoking with win32
API's, then
there are sure shot overheads , but then it is offset by good things like :

1. Automatic memory management , as unmanaged code are main reason for mem.
and handle leaks .

There could be some performance loss at IL -- Native Code level , but good
part is easy management of IL stuff and various other security benefits that
couple along .

3. Ngen , by defnition it seems to make good differences , but then there
are certain caveats :

1. By defaults it generates the code that is LCD for various compatible
processor architectures or otherwise for optimizing we need to know about
special calls and use appropriate flags , however jit , cretaes a real
optimized code with all benefits .

2. It invariably needs IL code (Manifest ) , at runtime , you maynot think
of protecting intellectual properties .

3. Any issues with installed native cache images , execution reverts to JIT
..

Actually JIT in theory may look like having some issues , but it's benefits
offsets all of them and again it's a first time hit after that there's no
repetitive compilation till the point source code is changed .

i hope this helps upto some extent ,

Mrinal

"Joanna Carter (TeamB)" <jo*****@nospamforme.com> wrote in message
news:O6*************@TK2MSFTNGP14.phx.gbl...
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> a écrit
dans le message de news: ee**************@TK2MSFTNGP15.phx.gbl...
It all depends on the application you are writing. All things
considered, I don't see any reason why a .NET program can't perform as well
as a non-managed program.

.NET 2.0 will be faster in some areas, but not across the board.

These
kind of improvements are not really going to be realized in such a general manner.


What areas tend to induce speed problems ?

We will be using our own data persistence layer and connecting UI controls
to objects and lists rather than directly to data tables.

The data layer will dynamically create SQL statements for submission to a
single query component, so we will not be using datasets of multiple

tables which, I gather, can be a potential bottleneck.

Once the code has been run once, I gather that the JIT "penalty" is removed from the equation and that I should expect native or better ^performance ?
There are also people out there that are writing code for the managed environments that are doing it wrong, which can contribute to this.
Don't worry, as a Delphi consultant, I get to see a fair amount of bad

code that can make Delphi apps run like Java <gd&r>

Joanna

--
Joanna Carter
Consultant Software Engineer

Nov 17 '05 #5

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

Similar topics

34
2434
by: Jacek Generowicz | last post by:
I have a program in which I make very good use of a memoizer: def memoize(callable): cache = {} def proxy(*args): try: return cache except KeyError: return cache.setdefault(args,...
4
1559
by: EP | last post by:
On questions of the suitability of Python for CGI, embedded apps, etc., execution speed comes to mind. I previously read some comparisons which did not show Python in a good light in this regard:...
7
1925
by: Peter Kleiweg | last post by:
I implemented a lexer in Pylly and compared it to the version I had written in Flex. Processing 219062 lines took 0.9 seconds in C (from Flex), and 5 minutes 54 second in Python (from Pylly), a...
52
3787
by: Neuruss | last post by:
It seems there are quite a few projects aimed to improve Python's speed and, therefore, eliminate its main limitation for mainstream acceptance. I just wonder what do you all think? Will Python...
8
2564
by: ted | last post by:
How does the speed of the Scons build tool compare with Ant? Right now with out Ant builds take around an hour. Hoping to speed that up. TIA, Ted
6
6853
by: J. Campbell | last post by:
Hi everyone. I'm sure that this is common knowledge for many/most here. However, it was rather illuminating for me (someone learning c++) and I thought it might be helpful for someone else. I'm...
2
1831
by: Wouter | last post by:
Hi, I was wandering. Does the query speed also depend on the colums that you don't use in the query (so not in the where and not in the select part). I have a lange unused backup field in...
18
2016
by: HerrLucifer | last post by:
I am each day becoming more and more addicted to the new .Net framework because of its cool RAD facilities. However, performance and speed is extremely important for my application development. I...
7
3032
by: YAZ | last post by:
Hello, I have a dll which do some number crunching. Performances (execution speed) are very important in my application. I use VC6 to compile the DLL. A friend of mine told me that in Visual...
4
1874
by: Peted | last post by:
hi, im wondering if there is a definitve answer to this. If you build a winforms/wpf application in vs2008, when you have compiled and run the app, does it run as fast (in general) as if you...
0
7048
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
6911
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...
0
7050
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,...
1
6743
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...
0
5344
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4488
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...
0
2999
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...
0
2988
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
185
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...

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.