473,385 Members | 1,893 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,385 software developers and data experts.

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 1288
"Christopher Ireland" <ci******@gmail.com> wrote in message
news:uF**************@TK2MSFTNGP12.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:
"Christopher Ireland" <ci******@gmail.com> wrote in message
news:uF**************@TK2MSFTNGP12.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.midnightbeach.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
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...
10
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) ...
3
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....
9
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...

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.