recompiling in .NET v2

  • Thread starter Thread starter Christopher Ireland
  • Start date Start date
C

Christopher Ireland

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
 
Christopher Ireland said:
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
 
Richard said:
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
 
Christopher said:
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.
 
Jon said:
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
 
Back
Top