DEV Community

Discussion on: Switch is Faster than If (in C#)

Collapse
 
kaylumah profile image
Max Hamulyák

Nice article, personally never worked on applications where performance in the nanoseconds mattered that much, but still knowing stuff like this and being able to benchmark is a valuable skill

Collapse
 
davidkroell profile image
David Kröll

Yeah, absolutely. The interesting part is of course the compiler magic here.