My Struct Key Boxed Itself Two Million Times
DEV Community
My Struct Key Boxed Itself Two Million Times
A dictionary lookup shouldn't allocate, so why was mine showing up in the profiler? The culprit was a struct key missing one interface, boxing itself on every call.
0 comments
No comments yet.