471,350 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 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 1221
"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 discussion thread is closed

Replies have been disabled for this discussion.

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.