473,811 Members | 2,970 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

recompiling in .NET v2

Hi all,

I've got an app written under the v1.1 of the .Net framework and I'm
now considering recompiling it under v2.0.

Can I expect my app to run any faster? Are there any advantages to
recompiling my v1.1 app under v2.0?

Many thanks for any comments.

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"There is no way to peace; peace is the way."
A. J. Muste
Jan 3 '06 #1
4 1305
"Christophe r Ireland" <ci******@gmail .com> wrote in message
news:uF******** ******@TK2MSFTN GP12.phx.gbl...
Hi all,

I've got an app written under the v1.1 of the .Net framework and I'm
now considering recompiling it under v2.0.

Can I expect my app to run any faster? Are there any advantages to
recompiling my v1.1 app under v2.0?

Many thanks for any comments.

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"There is no way to peace; peace is the way."
A. J. Muste


What you'll see depends on what type of thing you do. The GC has been
further tuned in v2 and I'm sure the JIT compiler has got better. However it
will be the library stuff that will probably make alot of difference.

For example the XML stack is alot faster under v2 than v1.1

What type of application is this?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk
Jan 3 '06 #2
Richard Blewett [DevelopMentor] wrote:
"Christophe r Ireland" <ci******@gmail .com> wrote in message
news:uF******** ******@TK2MSFTN GP12.phx.gbl...
Hi all,

I've got an app written under the v1.1 of the .Net framework and I'm
now considering recompiling it under v2.0.

Can I expect my app to run any faster? Are there any advantages to
recompiling my v1.1 app under v2.0?

Many thanks for any comments.


What you'll see depends on what type of thing you do. The GC has been
further tuned in v2 and I'm sure the JIT compiler has got better.
However it will be the library stuff that will probably make alot of
difference.

For example the XML stack is alot faster under v2 than v1.1

What type of application is this?


Thank you for your reply, Richard.

I'm surprised Microsoft hasn't made a harder push to underline the
advantages of recompiling v1.1 code in v2 as I'm sure some strong
arguments for upgrading could be made.

The application is a graphical component that uses GDI+ routines
extensively as well as a large number of complex integer and double
calculations.

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"You can't have everything. Where would you put it?"
Steven Wright
Jan 3 '06 #3
Christopher Ireland wrote:
I've got an app written under the v1.1 of the .Net framework and I'm
now considering recompiling it under v2.0.

Can I expect my app to run any faster? Are there any advantages to
recompiling my v1.1 app under v2.0?


Just by recompiling? Some, I'm sure, but most of the advantages are
going to come from rewriting System.Object code (with all its casting)
as generics ... and even there, only in key lists / key enumerations.

foreach is faster against an IEnumerable<T> than against an
IEnumerable; List<T> is faster than ArrayList.

--
<http://www.midnightbea ch.com>
Jan 5 '06 #4
Jon Shemitz wrote:
Christopher Ireland wrote:
I've got an app written under the v1.1 of the .Net framework and I'm
now considering recompiling it under v2.0.

Can I expect my app to run any faster? Are there any advantages to
recompiling my v1.1 app under v2.0?


Just by recompiling? Some, I'm sure, but most of the advantages are
going to come from rewriting System.Object code (with all its casting)
as generics ... and even there, only in key lists / key enumerations.

foreach is faster against an IEnumerable<T> than against an
IEnumerable; List<T> is faster than ArrayList.


Thanks for your answer Jon.

I understand that generics speed up key processing but at this moment
in time I'm more interested in CLR compiler and JIT compiler
optimizations that would make v1.1 code run faster under v2.0. Do you
or anybody else know of a list of such optimizations?

--
Christopher Ireland
Posted with XanaNews version 1.17.6.6

"There is no way to peace; peace is the way."
A. J. Muste
Jan 5 '06 #5

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

Similar topics

0
1299
by: Ryan Liu | last post by:
All, Now I have meet a strange problems. When all the files have been compiled and when linking, make always recompiles some files. I don't know why. Would you mind giving some suggestion? The following is the recompiling error? *************************************************** collect: recompiling Time-data.cpp
10
2418
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ComboBox.SelectedValue = db_value; If the db_value was not included in the ComboBox value list the ComboBox.SelectedIndex used to return -1, Now the very same code is
3
1188
by: Lucas Tam | last post by:
Does recompiling cause session objects to disappear? -- Lucas Tam (REMOVEnntp@rogers.com) Please delete "REMOVE" from the e-mail address when replying. http://members.ebay.com/aboutme/coolspot18/
9
1794
by: friendhouston | last post by:
Hi, Have a requirement where new items may be added later to an existing list of items. These new items may have new features but will need to contain minimum basic features like description and price. These items should be added to the existing code without the code being needed to be recompiled or making minimum changes to the existing code i.e. it should be OCP compliant. Not sure how to go about this . The only things which come to...
0
9734
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10395
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10408
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,...
0
10137
tracyyun
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...
0
6895
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();...
0
5561
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...
0
5700
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4346
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3874
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.