Is the goto statement slow in c#?

c#, goto

Solution

is goto slower than other flow control constructs?

No. All the other flow control constructs are basically `goto` anyway.

Problem

I'm working on a C# .NET application that uses some rather complex scientific formulas on large sets of data (10 million data points on average). Part of what I am doing requires optimizing the formula implementations as best as possible. I noticed that one formula implementation uses goto, and that made me wonder: is goto slower than other flow control constructs?

Original source