News for hackers. Stuff that matters.
Re:C# Pattern Matching by eyegor on Wednesday February 05, 2020 @07:37AM (#22246219)
For performance reasons as well. An overloaded == operator turns a simple ceq into a function call, involving a new stack frame push and pop. If you do this on a hot path, switching to (is null) and (is object) can provide a significant speedup and will likely reduce gc pressure.

There are no comments on this comment yet.