C# Switch Case Internals #1
Video Statistics and Information
Channel: LevelUp
Views: 1,798
Rating: undefined out of 5
Keywords: C#, csharp, JIT, performance, dotnet, compilers, programming, computer science, tutorial, C# tutorial, clr, clr internals, just in time, just in time compiler
Id: soDX_IeZsqM
Channel Id: undefined
Length: 14min 45sec (885 seconds)
Published: Thu Sep 24 2020
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
If the jump table is slower with only a few cases, why doesn't the compiler compile a simple switch to the same assembly as the corresponding if/else statements?
Seems like a pretty common case which you would like to optimise for.