Optimize native code size of Dictionary methods #7858
Labels
help wanted
[up-for-grabs] Good issue for external contributors
tenet-performance
Performance related issue
From dotnet/coreclr#10203 (comment)
I have glanced over the native code generated for
Dictionary<int,int>.Remove
. The CSE forentry[i]
kicks in some cases, but not others. If you cacheref Entry entry = ref entries[i];
at the start of the loop and replace all 9 occurrences ofentries[i]
with it, the native code generated for this method should be approximately 20% smaller.The text was updated successfully, but these errors were encountered: