The module level lookup for Schema types is adding quite a lot of cost to the loading phase due to the need to construct a new TypeName with Schema as the outer for each TypeName we are resolving.
A better approach would be to cache Schema types in their own hash map without the Schema outer on the TypeName. The lookup could then consult this map with the provided TypeName rather than construct a new TypeName just for this.
The module level lookup for Schema types is adding quite a lot of cost to the loading phase due to the need to construct a new TypeName with Schema as the outer for each TypeName we are resolving.
A better approach would be to cache Schema types in their own hash map without the Schema outer on the TypeName. The lookup could then consult this map with the provided TypeName rather than construct a new TypeName just for this.