You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I test Get and GetCached vs default GetComponent of MonoAllocation with profiler.
Get is samilar with GetComponent , GetCached is create more gc and not faster than Get
It seems storage alway equals null
storage ??= new Dictionary<int, Component>(16);
Even after using the ref keyword so that the Dictionary re-creation does not happen, the speed is still slower than the default and generates a lot of gc
So is there any reason to use them?
The text was updated successfully, but these errors were encountered:
When I test Get and GetCached vs default GetComponent of MonoAllocation with profiler.
Get is samilar with GetComponent , GetCached is create more gc and not faster than Get
It seems storage alway equals null
Even after using the ref keyword so that the Dictionary re-creation does not happen, the speed is still slower than the default and generates a lot of gc
So is there any reason to use them?
The text was updated successfully, but these errors were encountered: