Re: .NET anger.



In article <44ffd00d@xxxxxxxxxxxxxxxxxxxxxx>, Joanna Carter [TeamB]
says...
"Pete Goodwin" <goodwin.REMOVE@xxxxxxxxxxxxxxxxxxx> a écrit dans le message
de news: 44ffb0eb@xxxxxxxxxxxxxxxxxxxxxxxxx

| Maybe I should do some benchmarks for myself to see which is faster:
| pure WIN32 or .NET.

I would say that generics has to be a major factor in
speed increase in the many apps as it removes the need for casting and
boxing.

Boxing maybe, but surely casting has 0 overhead? It's compiler sugar,
not runtime tricks (with the exception of "magic" casts like String
(PChar), but these aren't generally anything to do with generics)

And comparing 2.0 and 1.1 muddies things as you are also involving two
different runtimes. aiui For some reason, even though .net was just as
fast as native code, the .net 2.0 runtime benefited from some
performance improvement work......

;)

--
Jolyon Smith
.



Relevant Pages

  • Re: Im wondering about the .NET event model
    ... There is also this cool C++ client called BitComet ... test it to see the performance of casting, boxing and unboxing. ... Boxing and unboxing demo start... ...
    (microsoft.public.dotnet.framework)
  • Re: Im wondering about the .NET event model
    ... > test it to see the performance of casting, boxing and unboxing. ... > Boxing and unboxing demo start... ... > Elapsed time: 5673.346 ms ...
    (microsoft.public.dotnet.framework)
  • Re: Im wondering about the .NET event model
    ... > test it to see the performance of casting, boxing and unboxing. ... > Boxing and unboxing demo start... ... > Elapsed time: 5673.346 ms ...
    (microsoft.public.dotnet.framework)
  • Re: Boxing and Unboxing ??
    ... and the only way to do that without boxing would be to ... Generics don't eliminate the need for, or usefulness of, boxing. ... the reflection methods to invoke a method dynamically ... Invoke(MethodInfo mi, A arg1, B arg2) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Im wondering about the .NET event model
    ... >> test it to see the performance of casting, boxing and unboxing. ... >> Projects\Classes and Tutorials\Code Optimization Demos\Source ... >> Boxing and unboxing demo start... ...
    (microsoft.public.dotnet.framework)

Loading