Menu

#Equals

5 posts

Feed·
5 of 5 posts
My Struct Key Boxed Itself Two Million Times
📰
0Read More

My Struct Key Boxed Itself Two Million Times

DEV Community: dotnet·Sukhpinder Singh·17 days ago
#4I0cP0ve
#devtodotnet#devto#dev#struct#fastkey

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.

15s