I have written a function to calculate a formula in C# that uses nested for loops. It runs slower than I would like and I have been trying to speed it up. Is there a good way to determine if my code can optimized further in C# or if I need to move to a language that is machine compiled such as C++?
I know each case will be different but is there a general process/checklist that could be used to determine if more optimization is possible?