-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memoize InnerGetTypeName() #318
base: master
Are you sure you want to change the base?
Memoize InnerGetTypeName() #318
Conversation
Is ths a hotspot during Domain building or during domain live? |
I don't remember. |
I think I know when you get hot paths for In various cases we can replace I see that System.RuntimeType has cache for names (according to the sources) public override String Name
{
get
{
return GetCachedName(TypeNameKind.Name);
}
} Implicit usage of this cache will help us to not bloat our caches. Maybe we can start with something like this (#333) and see how it goes. What do you think? I don't know whether you can check results of the PR I mentioned and tell me the outcome. |
I don't mind these changes, but to test them with our app requires big efforts to create special branches and build. |
Sure, as I thought, it is understandable. |
I merged my PR, I postpone this one for results of my PR, whether it did something or not. |
We see in tracing this is a hotspot