What attributes help runtime .Net performance?

前端 未结 3 1953
孤街浪徒
孤街浪徒 2021-02-05 13:54

I am looking for attributes I can use to ensure the best runtime performance for my .Net application by giving hints to the loader, JIT compiler or ngen.

For example we

3条回答
  •  抹茶落季
    2021-02-05 14:20

    Ecma-335 specifies some more CompilationRelaxations for relaxed exception handling (so-called e-relaxed calls) in Annex F "Imprecise faults", but they have not been exposed by Microsoft.

    Specifically CompilationRelaxations.RelaxedArrayExceptions and CompilationRelaxations.RelaxedNullReferenceException are mentioned there.

    It'd be intersting what happens when you just try some integers in the CompilationRelaxationsAttribute's ctor ;)

提交回复
热议问题