.Net optimizations for absolute, no-holds bar fastest running code possible? -


First of all, code-readability exits the window for this question. I am all for code readability, but speed comes here first.

When your code is completely without doubt, any exception can be made as fast as possible in the knot framework, what are some customizations? I know that there are flags for optimizing the compiler and I have definitely seen thanks for them ... but what if this is not good enough? What are some tricks and right techniques to scraping the lowest clock cycles required to process?

Close exceptions (i.e. do not use them)

Bound check Close

Use a profiler to find constraints

edit : Also read this article written by it, it is a very specific Optimization, it is also dependent on the stage but very less known and very useful.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -