RE: Constants slower than array properties?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: WXS (WXS_at_discussions.microsoft.com)
Date: 02/15/05


Date: Tue, 15 Feb 2005 07:27:02 -0800

Thanks very helpful!
Dave

"Paul Hill" wrote:

> It's interesting though if I use an unsafe code block with pointer or without
> pointer access it is generally slower than the normal safe code blocks.
>
> Kind of ironic, yeah? It's possible the JIT gets scared to optimise stuff
> it can't verify.
>
> > Are there any other optimizations like that .NET is doing, are they
> > documented anywhere? That could be very useful information to know.
>
> Yep:
>
> http://msdn.microsoft.com/library/en-us/dndotnet/html/dotnetperftechs.asp
> http://msdn.microsoft.com/library/en-us/dndotnet/html/dotnetperftips.asp
>
> That's the big list, although there's other little gotcha's that are more
> language specific. The Big Idea is that .NET is optimised for the general
> case; almost always trying to optimise makes it slower.
>



Relevant Pages

  • Re: MASM Expert needed immediately
    ... ago I tried to optimise 20 lines of C code into 10 lines of ... and made it 15% slower in so doing). ... There seems to be a proven benefit for the applications that SSE was ... so I don't see a problem with the extensions. ...
    (alt.lang.asm)
  • Re: MASM Expert needed immediately
    ... ago I tried to optimise 20 lines of C code into 10 lines of ... SSE2 asm, and made it 15% slower in so doing). ... SSE has never been a thing but selling propaganda, ...
    (alt.lang.asm)
  • Re: Adding functionality to ARM BASIC
    ... Hmmm. ... My tests showed it to be about 0.03% slower than unmodified ... something I want to go through and optimise further. ... give people a reason to strive to change it. ...
    (comp.sys.acorn.programmer)
  • Re: optimized code
    ... Sun found that the more they tried to optimise the bytecode, ... complicated by trying to guess what will happen to it, whereas a JIT ... For instance, if a compiler does loop unrolling in the IL, the JIT ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [OT] Jake the Linux-phobe
    ... Iman L Crawford writes: ... Yeah but it is fun to optimise your system. ...
    (borland.public.delphi.non-technical)