Menu

#FastKey

1 post

Feed
1 of 1 post
My Struct Key Boxed Itself Two Million Times
📰
0Read More

My Struct Key Boxed Itself Two Million Times

DEV Community: dotnet·Sukhpinder Singh·15 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