Repository navigation
SPMI: fix performance of repRecordCallSite. - #42192
Conversation
|
What was causing the perf issues... hash collision? |
It is an artificial huge method that records ~10^4 call site with |
|
cc @dotnet/jit-contrib |
BruceForstall
left a comment
There was a problem hiding this comment.
It would be useful to add a comment, probably to repRecordCallSite, explaining why there are two maps for this particular call (namely, performance).
@BruceForstall do you remember what was the scenario when we were using CallUtils?
I don't remember. We often don't use much CompileResult, except for things we use for ASM diffs.
After the fix the replay takes around ~100s (before 1000+) on my machine. It could be further improved but I do not think it is a bottle-neck now.
Note that we initialize this data only under
DEBUGand only access this data fromCallUtils::GetRecordedCallSiteInfothat is currently unused (as all other methods fromCallUtilsexceptGetMethodFullName), @BruceForstall do you remember what was the scenario when we were usingCallUtils? If we can delete it we can do nothing forrepRecordCallSiteand save replay time.Fixes #41635