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
{{ message }}
Repository navigation
The Java.Interop.TypeManager static constructor allocates lots of strings #1829
When recently profiling Xamarin.Android application startup, we observed that lots of strings were being allocated by the Java.Interop.TypeManager static constructor.
On further thought, the typemap.mj and typemap.jm files suggest that __TypeRegistrations.RegisterPackages() shouldn't be needed at all. Removing them entirely -- or at least not calling them -- should help with the strings allocated and overall startup time.
Activity
jonpryor commentedon Jul 2, 2018
On further thought, the
typemap.mjandtypemap.jmfiles suggest that__TypeRegistrations.RegisterPackages()shouldn't be needed at all. Removing them entirely -- or at least not calling them -- should help with the strings allocated and overall startup time.jonathanpeppers commentedon Feb 18, 2026
__TypeRegistrationsis no longer used, I think this is old and can be closed.